Module: Remockable::Helpers
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveModel::Helpers, ActiveRecord::Helpers
- Defined in:
- lib/remockable/helpers.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #attribute ⇒ Object
- #matches?(actual) ⇒ Boolean
- #options ⇒ Object
- #unsupported_options ⇒ Object
- #valid_options ⇒ Object
- #validate_options! ⇒ Object
Instance Method Details
#attribute ⇒ Object
27 28 29 |
# File 'lib/remockable/helpers.rb', line 27 def attribute @attribute ||= expected_as_array.first end |
#matches?(actual) ⇒ Boolean
35 36 37 38 |
# File 'lib/remockable/helpers.rb', line 35 def matches?(actual) super end |
#options ⇒ Object
31 32 33 |
# File 'lib/remockable/helpers.rb', line 31 def @options ||= expected_as_array. end |
#unsupported_options ⇒ Object
40 41 42 |
# File 'lib/remockable/helpers.rb', line 40 def [] end |
#valid_options ⇒ Object
44 45 46 |
# File 'lib/remockable/helpers.rb', line 44 def [] end |
#validate_options! ⇒ Object
48 49 50 51 |
# File 'lib/remockable/helpers.rb', line 48 def end |