Skip to content

Commit

Permalink
hack around jruby bug with pact
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-graham committed Jul 31, 2015
1 parent 563f255 commit 83410d5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/service_consumers/pact_helper.rb
Expand Up @@ -21,6 +21,21 @@
require 'bundler'
Bundler.require(:default, :test)

if 'java'.eql?(RUBY_PLATFORM)
module Pact
module MatchingRules
class Merge
def initialize expected, matching_rules, root_path
@expected = expected
@matching_rules = standardise_paths(matching_rules)
# @root_path = JsonPath.new(root_path).to_s # problematic line in jruby
@root_path = JsonPath.new(root_path).path.join
end
end
end
end
end

ActiveSupport.use_standard_json_time_format = true
ActiveSupport.time_precision = 0

Expand Down

0 comments on commit 83410d5

Please sign in to comment.