lib/capybara/spec/session/check_spec.rb in capybara-3.0.2 vs lib/capybara/spec/session/check_spec.rb in capybara-3.0.3

- old
+ new

@@ -60,9 +60,15 @@ @session.check("Cat") @session.click_button('awesome') expect(extract_results(@session)['pets']).to include('dog', 'cat', 'hamster') end + it "should work without a locator string" do + @session.check(id: "form_pets_cat") + @session.click_button('awesome') + expect(extract_results(@session)['pets']).to include('dog', 'cat', 'hamster') + end + it "casts to string" do @session.check(:form_pets_cat) @session.click_button('awesome') expect(extract_results(@session)['pets']).to include('dog', 'cat', 'hamster') end