Created
November 27, 2012 19:51
-
-
Save joshuaclayton/4156575 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'Page without plans' do | |
it 'passes unless a second assertion is made that .plans li contains at least one element' do | |
visit root_path | |
all('.plans li').each do |node| | |
expect(node.text).to match /\$\d{1,2}/ | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See rspec/rspec-core#404