Module: Intermodal::RSpec::Accountability
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/intermodal/rspec/models/accountability.rb
Overview
All Intermodal controllers require models that belongs to an account object and responds to #get. This allows the controllers to fetch records authorized by the account.
This RSpec macro tests these assumptions.
Usage:
class Resource < ActiveRecord::Base
include Intermodal::Models::Accountability
end
describe Resource do
include Intermodal::RSpec::Accountability
concerned_with_accountability
end
It works with Remarkable. It might work with Shoulda
If you don’t want to use either, you can try
describe Resource do
include Intermodal::RSpec::Accountability
implements_get_interface
end
Defined Under Namespace
Modules: ClassMethods