spec/config_loader_spec.rb in configloader-0.2.1 vs spec/config_loader_spec.rb in configloader-0.2.2
- old
+ new
@@ -4,9 +4,10 @@
describe ".load" do
def prepare_mocks(running_env, project_root)
Rails.stub!(:env).and_return(running_env)
+ Rails.stub!(:root).and_return('/home/user/project')
ConfigLoader::Map.should_receive(:new).with('database', running_env, project_root).and_return(@map_mock)
@map_mock.should_receive(:load).and_return('config')
end
before(:each) do