Class: RspecSequel::Matchers::HaveOneToOneMatcher
- Inherits:
-
Association
- Object
- Base
- Association
- RspecSequel::Matchers::HaveOneToOneMatcher
- Defined in:
- lib/rspec_sequel/matchers/have_one_to_one.rb
Instance Method Summary collapse
Methods inherited from Association
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_type ⇒ Object
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
8 9 10 11 12 |
# File 'lib/rspec_sequel/matchers/have_one_to_one.rb', line 8 def valid?(db, i, c, attribute, ) matching = super matching end |