rendered.should have_selector in rspec-rails view specs
If you’re running into “undefined method `has_selector?' for String” in your view specs after upgrading to RSpec 2 beta 20, this article may help you.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
If you’re running into “undefined method `has_selector?' for String” in your view specs after upgrading to RSpec 2 beta 20, this article may help you.
Comments
Cool, thanks! Just what I was looking for.
Post a comment