Add gem 'launchy'
and then you can use save_and_open_page
after visit
to see how rendered page looks like.
Add subject { page }
to the spec to fix it.
If you say it
than it have to point to something. In your test it doesn't.
You can use should
on page
to do that (page
is not the only one you can test. There are more, like response
or even lambdas) that way:
it "some description" do
page.should have_content('foo')
end
or if you have many tests for page
than you can write them in a short way:
it { should have_content('foo') }
but you need to specify subject for it
first:
subject { page }