class RSpec::Rails::Mocks::Association

Starting with Rails 4.1, ActiveRecord associations are inversible by default. This class represents an association from the mocked model's perspective.

@private

Attributes

inversed[RW]
target[RW]

Public Class Methods

new(association_name) click to toggle source
# File lib/rspec/rails/mocks.rb, line 40
def initialize(association_name)
  @association_name = association_name
end