spec/configurators/ruby_configurator_spec.rb in rconf-0.7.10 vs spec/configurators/ruby_configurator_spec.rb in rconf-0.7.11

- old
+ new

@@ -60,10 +60,10 @@ end describe 'bashrc update' do before(:each) do - flexmock(File).should_receive(:exist?).with(File.join(ENV['HOME'], '.bashrc')).once.and_return(true) + flexmock(File).should_receive(:exist?).with(File.join(ENV['HOME'], '.bash_profile')).once.and_return(true) flexmock(File).should_receive(:exist?).with('.rvmrc').and_return(true) flexmock(FileUtils).should_receive(:mv).and_return(true) f = flexmock('f') f.should_receive(:puts).and_return { |c| @bashrc_content = c } flexmock(File).should_receive(:open).and_yield(f)