Class: RspecSequel::Matchers::HaveManyThroughManyMatcher

Inherits:
Association
  • Object
show all
Defined in:
lib/rspec_sequel/matchers/have_many_through_many.rb

Instance Method Summary collapse

Methods inherited from Association

#description

Methods inherited from Base

#failure_message, #failure_message_when_negated, #hash_to_nice_string, #initialize, #matches?

Constructor Details

This class inherits a constructor from RspecSequel::Base

Instance Method Details

#association_typeObject



5
6
7
# File 'lib/rspec_sequel/matchers/have_many_through_many.rb', line 5

def association_type
  :many_through_many
end

#valid?(db, i, c, attribute, options) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
14
# File 'lib/rspec_sequel/matchers/have_many_through_many.rb', line 9

def valid?(db, i, c, attribute, options)
  matching = super

  # check that association model exists, etc.
  matching
end