diff --git a/spec/xcode_summary_spec.rb b/spec/xcode_summary_spec.rb index 381cfdc..c624f26 100644 --- a/spec/xcode_summary_spec.rb +++ b/spec/xcode_summary_spec.rb @@ -14,7 +14,7 @@ module Danger before do @dangerfile = testing_dangerfile @xcode_summary = @dangerfile.xcode_summary - @xcode_summary.env.request_source.pr_json = JSON.parse(IO.read('spec/fixtures/pr_json.json')) + @xcode_summary.env.request_source.pr_json = JSON.parse(File.read('spec/fixtures/pr_json.json')) @xcode_summary.project_root = '/Users/marcelofabri/SwiftLint/' end @@ -180,7 +180,7 @@ module Danger before do @dangerfile = testing_bitbucket_dangerfile @xcode_summary = @dangerfile.xcode_summary - @xcode_summary.env.request_source.pr_json = JSON.parse(IO.read('spec/fixtures/bitbucket_pr.json'), symbolize_names: true) + @xcode_summary.env.request_source.pr_json = JSON.parse(File.read('spec/fixtures/bitbucket_pr.json'), symbolize_names: true) @xcode_summary.project_root = '/Users/diogo/src/danger-xcode_summary' end