spec/configurators/ruby_configurator_spec.rb in rconf-1.0.4 vs spec/configurators/ruby_configurator_spec.rb in rconf-1.0.5
- old
+ new
@@ -55,17 +55,17 @@
flexmock(File).should_receive(:exist?).with(File.join(ENV['HOME'], '.rbenv', 'bin', 'rbenv')).and_return(false)
end
it 'should install rbenv and ruby-build' do
flexmock(RightConf::PackageInstaller).should_receive(:install).with('rbenv', Hash).once
- flexmock(RightConf::PackageInstaller).should_receive(:install).with('ruby-build', Hash, Proc).once
+ flexmock(RightConf::PackageInstaller).should_receive(:install).with('ruby-build', Hash).once
should_execute('rbenv', 'local', '42').and_return(success_result)
@configurator.run_linux
end
it 'should install ruby if needed' do
flexmock(RightConf::PackageInstaller).should_receive(:install).with('rbenv', Hash).once
- flexmock(RightConf::PackageInstaller).should_receive(:install).with('ruby-build', Hash, Proc).once
+ flexmock(RightConf::PackageInstaller).should_receive(:install).with('ruby-build', Hash).once
should_execute('rbenv', 'local', '42').and_return(failure_result)
flexmock(RightConf::Platform).should_receive(:dispatch).with('42', Proc)
should_execute('rbenv', 'local', '42').and_return(success_result)
@configurator.run_linux
end