Brian Jones on Write your own custom RSpec… Josh on Write your own custom RSpec… Cant sign in user in… on Rails + Devise and Rspec Robert Reiz on Ruby’s Singleton and Cus… Matheus Santana on Test a gem with the Rails 3…
Tag Archives: rspec
If you ever want to have a connection pool, you need not reinvent the wheel because Mike Perham has done all the work for you already. Browse on over to connection_pool on github.
Earlier this year I spent some time writing a custom RSpec formatter. The purpose in my case was to be able to automatically update a remote service with the results of testing some code. You can find that project here, … Continue reading
A relatively simple way to load some configuration once and safely, is through the use of the Singleton module provided with Ruby. Accessing the instance is easy, call FooConfig.instance. This method is also thread-safe so no two threads are going … Continue reading
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
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