From 2d1d06a31c6748d3f00ead01e0e6bcba71fbec76 Mon Sep 17 00:00:00 2001 From: Hauke Klement Date: Sat, 7 Feb 2015 10:18:09 +0100 Subject: [PATCH] fixed broken tests --- spec/lib/code_ocean/config_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/code_ocean/config_spec.rb b/spec/lib/code_ocean/config_spec.rb index 0df99834..eb05c99b 100644 --- a/spec/lib/code_ocean/config_spec.rb +++ b/spec/lib/code_ocean/config_spec.rb @@ -10,7 +10,7 @@ describe CodeOcean::Config do let(:read) { CodeOcean::Config.new(filename).read } context 'when the file is present' do - before(:each) { File.write(path, {Rails.env => content}.to_yaml) } + before(:each) { File.write(path, {Rails.env.to_s => content}.to_yaml) } after(:each) { FileUtils.rm(path) } it 'returns the environment-specific content' do @@ -30,7 +30,7 @@ describe CodeOcean::Config do let(:read) { CodeOcean::Config.new(filename).read(erb: true) } context 'when the file is present' do - before(:each) { File.write(path, {Rails.env => content}.to_yaml) } + before(:each) { File.write(path, {Rails.env.to_s => content}.to_yaml) } after(:each) { FileUtils.rm(path) } it 'returns the environment-specific content' do