I am testing a Rails 3.2.6 application.
Is it possible to make an Rspec / Capybara statement that expresses, for example:
'If I ask for films between 1970 and 1990, the page should contain a film between these dates:'
for instance
it "should show films in the the chosen date range" do page.should have_selector '.year',
And vice versa, can I verify that the '.year' elements contain dates that are not in this range?
Thanks for any help.
source share