Class: FIXSpec::Matchers::HaveFIXPath
- Inherits:
-
Object
- Object
- FIXSpec::Matchers::HaveFIXPath
- Defined in:
- lib/fix_spec/matchers/have_fix_path.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #description ⇒ Object
- #failure_message_for_should ⇒ Object
- #failure_message_for_should_not ⇒ Object
-
#initialize(path) ⇒ HaveFIXPath
constructor
A new instance of HaveFIXPath.
- #matches?(fix_message) ⇒ Boolean
Constructor Details
#initialize(path) ⇒ HaveFIXPath
Returns a new instance of HaveFIXPath.
5 6 7 8 |
# File 'lib/fix_spec/matchers/have_fix_path.rb', line 5 def initialize path @path = path @json_matcher = JsonSpec::Matchers::HaveJsonPath.new path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/fix_spec/matchers/have_fix_path.rb', line 4 def path @path end |
Instance Method Details
#description ⇒ Object
24 25 26 |
# File 'lib/fix_spec/matchers/have_fix_path.rb', line 24 def description %(have Protobuf path "#{@path}") end |
#failure_message_for_should ⇒ Object
16 17 18 |
# File 'lib/fix_spec/matchers/have_fix_path.rb', line 16 def %(Expected FIX path "#{@path}") end |
#failure_message_for_should_not ⇒ Object
20 21 22 |
# File 'lib/fix_spec/matchers/have_fix_path.rb', line 20 def %(Expected no FIX path "#{@path}") end |