thoughtbot/capybara-webkit — Issue #244: Evaluate script wierdness
Author: kap0w
Created: 2012-01-18 15:41:03+00:00
State: open

Hi team,

I have several issues related to using the returned value from javascript, my test environment you can see here:

https://gist.github.com/1633567

My output from rspec is the following:
2) Newsletter on site GET / should say that the user is NOT outdated
Failure/Error: result.should be_an_instance_of FalseClass
expected nil to be an instance of FalseClass
# ./spec/requests/newsletters_spec.rb:52
2) Newsletter on site GET / should say that the user is NOT outdated
Failure/Error: result.should be_an_instance_of FalseClass
expected nil to be an instance of FalseClass
# ./spec/requests/newsletters_spec.rb:52

Am I using this wrong? Can I do anything to get the expected behavior ?