PLEASE FORGET THIS!! IT WAS PURE STUPIDITY!!!
On 25 Dec, 14:11, jeb <jo...-sgoA4MbTzF0@public.gmane.org>
wrote:> It seems my specs has stopped thinking. The spec does not evaluate the
> argument in page.should have_content("Logga in på #{farm.name}")
as
> an expression but as a string. I have tried other ways of writing the
> same expression but it doesn''t help.
>
> This is my very simple spec:
>
> # encoding: utf-8
> require ''spec_helper''
> include Warden::Test::Helpers
>
> describe "Pupils" do
> it "show login page for farm" do
> farm = Factory.create(:farm)
> visit new_pupil_session_path
> page.should have_content("Logga in på #{farm.name}")
> end
> end
>
> The error I get when I runt it is:
> 1) Pupils show login page for farm
> Failure/Error: page.should have_content("Logga in på
> #{farm.name}")
> expected there to be content "Logga in på farm_long2" in
> "horsemanager\
>
> So why does it not evaluate #{farm.name}? It''s probably something
> stupid I have missed.
>
> Appreciate any help!
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.