Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Fixing unit tests - we don't always have a Pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariana committed Nov 12, 2014
1 parent 3bfae48 commit 954e037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pacto/native_contract_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def files_for(contracts_dir)

def parse_json(path)
contents = File.read(path)
contents = ERB.new(contents).result if path.extname == '.erb'
contents = ERB.new(contents).result if path.to_s.end_with? '.erb'
JSON.parse(contents)
end

Expand Down

0 comments on commit 954e037

Please sign in to comment.