spec/conferrable_spec.rb in conferrable-1.0.2 vs spec/conferrable_spec.rb in conferrable-1.0.3

- old
+ new

@@ -1,23 +1,25 @@ +# frozen_string_literal: true + # # Copyright (c) 2018-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # require './lib/conferrable' describe Conferrable do - let(:default_file_path) { './config/file1.yml.erb' } let(:default_abs_file_path) { File.expand_path(default_file_path) } - let(:default_file) { "admin: true" } + let(:default_file) { 'admin: true' } before(:each) do - allow(::Conferrable::FileUtilities).to receive(:resolve).with([default_file_path]).and_return([default_abs_file_path]) + allow(::Conferrable::FileUtilities).to receive(:resolve).with([default_file_path]) + .and_return([default_abs_file_path]) allow(IO).to receive(:read).with(default_abs_file_path).and_return(default_file) end after(:each) do @@ -56,7 +58,6 @@ expect do Conferrable.set_filenames(:file1, 'something_else.yml.erb') end.to raise_error(ArgumentError) end - end