use #described_class, as suggested by RuboCop
This commit is contained in:
@ -7,7 +7,7 @@ describe CodeOcean::Config do
|
||||
|
||||
context 'with a .yml file' do
|
||||
let(:path) { Rails.root.join('config', "#{filename}.yml") }
|
||||
let(:read) { CodeOcean::Config.new(filename).read }
|
||||
let(:read) { described_class.new(filename).read }
|
||||
|
||||
context 'when the file is present' do
|
||||
before(:each) { File.write(path, {Rails.env.to_s => content}.to_yaml) }
|
||||
@ -27,7 +27,7 @@ describe CodeOcean::Config do
|
||||
|
||||
context 'with a .yml.erb file' do
|
||||
let(:path) { Rails.root.join('config', "#{filename}.yml.erb") }
|
||||
let(:read) { CodeOcean::Config.new(filename).read(erb: true) }
|
||||
let(:read) { described_class.new(filename).read(erb: true) }
|
||||
|
||||
context 'when the file is present' do
|
||||
before(:each) { File.write(path, {Rails.env.to_s => content}.to_yaml) }
|
||||
|
Reference in New Issue
Block a user