Displaying 2 results from an estimated 2 matches for "assert_contain".
Did you mean:
assert_contains
2006 Feb 09
1
Alternative take on Selenium in Rails
...', ''the Cat''
select ''new_person_gender'', ''Male''
type ''new_person_creation_source'', ''The Planet Zorg''
click_and_wait ''submit_add_new_person'', 4
assert_contains ''person_name'', ''Pixel the Cat''
end
end
This will be turned into a Selenium test suite when you run:
rake selenium
Anyway, enough for the forum. Check out the plugin if you''re interested.
It''s still quite rough, but it Works For Me....
2011 Sep 04
3
rspec assert inclusion in..
hello,
I would like to assert that an attribute of a model has value among
those in an array. How would I do it in rspec?
Something like this...
describe OptionType do
context "shoulda validations" do
it { assert_contains :type, [''Type1'', ''Type1'']}
end
end