-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I have some unusual failures when using this gem in rspec tests:
If I run rspec like this:
rspec spec/ -fd
Setlist pages
setlist#new
should be valid markup (FAILED - 9)
should have content "Add a New Setlist"
should have title "Add A Setlist | The San Francisco Rockers' Club"
1) Shared Pages: menus, headers, footers page header main menu with a logged in user should be valid markup
Failure/Error: it { should be_valid_markup }
NoMethodError:
undefined method `collect' for nil:NilClass
# ./spec/requests/shared_pages_spec.rb:31:in `block (5 levels) in <top (required)>'
Finished in 19.53 seconds
320 examples, 17 failures, 3 pending
I get lots of failures from should be_valid_markup, in all the tests where I use it.
If I run my tests like this:
rspec spec/ --tag request -fd
Setlist pages
setlist#new
should be valid markup
should have content "Add a New Setlist"
should have title "Add A Setlist | The San Francisco Rockers' Club
Finished in 29.55 seconds
94 examples, 0 failures
Or this:
rspec spec/
Finished in 32.75 seconds
320 examples, 0 failures, 3 pending
They all pass.
Any idea what is going on here? This gem has helped me keep my HTML valid, so thanks for that!
Metadata
Metadata
Assignees
Labels
No labels