class FIXSpec::Matchers::BeFIXEql
Public Class Methods
new(expected_fix_as_json = nil)
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 6 def initialize(expected_fix_as_json = nil) @json_matcher= JsonSpec::Matchers::BeJsonEql.new expected_fix_as_json end
Public Instance Methods
actual()
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 14 def actual @json_matcher.actual end
at_path(path)
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 22 def at_path(path) @json_matcher.at_path path self end
description()
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 40 def description @json_matcher.message_with_path("equal FIX") end
diffable?()
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 10 def diffable? @json_matcher.diffable? end
expected()
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 18 def expected @json_matcher.expected end
failure_message_for_should()
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 32 def failure_message_for_should @json_matcher.message_with_path("Expected equivalent FIX") end
matches?(fix_message)
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 27 def matches?(fix_message) fix_json = message_to_unordered_json(fix_message) @json_matcher.matches? fix_json end
negative_failure_message()
click to toggle source
# File lib/fix_spec/matchers/be_fix_eql.rb, line 36 def negative_failure_message @json_matcher.message_with_path("Expected inequivalent FIX") end