diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 070c390..02d336e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -16,7 +16,7 @@ def load_json_fixtures(fname) JSON.parse( - IO.read(fname), + File.read(fname), symbolize_names: true ) end diff --git a/spec/unit_test/db/vk_informer_wall_spec.rb b/spec/unit_test/db/vk_informer_wall_spec.rb index fd5e213..18673e2 100644 --- a/spec/unit_test/db/vk_informer_wall_spec.rb +++ b/spec/unit_test/db/vk_informer_wall_spec.rb @@ -66,7 +66,7 @@ fn = 'vk_informer_wall_spec/wall.get.1.json' @stub = stub_request(:post, 'https://api.vk.com/method/wall.get') .to_return( - body: IO.read("#{File.dirname(__FILE__)}/../../fixtures/#{fn}") + body: File.read("#{File.dirname(__FILE__)}/../../fixtures/#{fn}") ) end