Class: RspecSequel::Matchers::HaveOneToOneMatcher

Inherits:
Association show all
Defined in:
lib/rspec_sequel/matchers/have_one_to_one.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



4
5
6
# File 'lib/rspec_sequel/matchers/have_one_to_one.rb', line 4

def association_type
  :one_to_one
end

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

Returns:

  • (Boolean)


8
9
10
11
12
# File 'lib/rspec_sequel/matchers/have_one_to_one.rb', line 8

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

  matching
end