-
Recent Posts
Recent Comments
Archives
Categories
Meta
Monthly Archives: September 2011
Rails + Kaminari with RSpec
The default rspec view specs don’t work so well for index pages if you have added Kaminari pagination. The reason is the assigned variable in the controller is not an array, but is instead expected to respond to additional methods: … Continue reading
Rails + Devise and Rspec
So I tried using Devise on a project and ran into an issue with the default generated controller specs. PlansController POST create with invalid params re-renders the ‘new’ template Failure/Error: response.should render_template(“new”) expecting <”new”> but rendering with <”"> # ./plans_controller_spec.rb:73:in … Continue reading