Displaying 3 results from an estimated 3 matches for "m000014".
Did you mean:
3000014
2007 May 19
2
have_text matcher does not support should_not.
...in This Group/)
end
But running with spec (0.9.4), drop me the folling error:
Matcher does not support should_not.
See Spec::Matchers for more information
about matchers.
Which is contradictory, since RDoc state otherwise:
http://rspec.rubyforge.org/rdoc-rails/classes/Spec/Rails/Matchers.html#M000014
response.should have_text(expected)
response.should_not have_text(expected)
Just a bug? If so, I''m filling a a report at rubyforge.
Thanks in advance
--
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of...
2007 Jun 01
1
redirect_to a relative path
In a controller spec, doing something like:
response.redirect_url.should == omglolsrofls_path
... fails, as so:
expected "/omglolrofls", got "http://test.host/omglolrofls" (using ==)
You can see that the http://test.host is prepended to the path.
My controller is indeed redirecting to the omglolrofls path, and not
the url.
Is this expected ?
Oh... and that''s an
2006 Nov 28
2
R() in controllers
Hello all,
I have an app mounted under /test via lighttpd fastcgi as indicated on
[1]. Here I use R(Foo, bar) in views to link to controller foo, this correctly
creates a /test/foo/bar link. However, when I use R() in some controller,
for example:
headers[''Refresh''] = "60; url=#{R(Foo, bar)}"
The generated link is /foo/bar, which obviously links to something