In my Rails 3 application I have a controller with the following actions (code simplified): def payment
I\'m writing specs for a plugin which has different modules that the user can choose to load. Some of these modules dynamically add before_filters to ApplicationController.
This is a follow on after completing the Ruby on Rails tutorial. I\'ve spent quite a while trying to mix and match gems to find a solution since I really have no idea how Rspec is having trouble iden
I have been wondering about the usefulness of writing tests that match code one-by-one. Just an example: in Rails, you can define 7 restful routes in one line in routes.rb using:
I have a rails app, plus code in 开发者_StackOverflow中文版lib.I have the spec directory under RAILS_ROOT.
I have two rails projects which share the same models (a public website and a an admin site) via a git submodule.
This question is about how to best name RSpec example groups and examples in English. I understand that in RSpec, describe, context (which are functionally equivalent) and it are supposed to give you
Is it possible to check what arguments is being passed to a non static method when testing with rspec?
I\'m running rails 3.0.3 and using rspec-rails 2.4.1 with a postgresql database. Whenever I run my RSpec tests, the data remains at the end. Does anyone know how to get rails or rspec to wipe the test
Suppose I have this very simple method in Store\'s model: def geocode_address loc = Store.geocode(address)