drugpl / bbq

Object oriented acceptance testing using personas.
MIT License
92 stars 9 forks source link

Better RSpec integration #36

Closed jakubkosinski closed 4 years ago

jakubkosinski commented 11 years ago

Custom matchers can be chained. Example code:

scenario "inspecting contents" do
  user = Bbq::TestUser.new
  user.visit "/"
  user.should see("Header").within("h1")
  user.should see_table("table").with_content([
    ["#", "First name", "Last name"]
  ]).in_header
end