rspec and ruby 1.9.1: problem with dummy controller and routes
- by giorgian
I want to test a module that basically executes some verify statements, to ensure that actions are invoked with the correct method.
# /lib/rest_verification.rb
module RestVerification
def self.included(base) # :nodoc:
base.extend(ClassMethods)
end
module ClassMethods
def verify_rest_actions
verify :method => :post, :only…