Sha256: 23df2b1a5a6b97c50fe03b57b565e70fb88cc09ddf5043f1d9bc98a5258ca5a3
Contents?: true
Size: 900 Bytes
Versions: 1
Compression:
Stored size: 900 Bytes
Contents
# 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::Entry 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' } before(:each) do 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 it 'should load default file' do entry = Conferrable::Entry.new(:file1) admin_value = entry.all['admin'] expect(admin_value).to be true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conferrable-1.0.3 | spec/entry_spec.rb |