spec/empty_gemset_spec.rb in rvm-capistrano-1.5.5 vs spec/empty_gemset_spec.rb in rvm-capistrano-1.5.6

- old
+ new

@@ -11,11 +11,11 @@ } it "should empty a gemset in $HOME" do @configuration.trigger :load expected = "$HOME/.rvm/bin/rvm 2.0.0 do rvm --force gemset empty #{@gemset}" - @task.namespace.should_receive(:run_without_rvm).with(expected) + expect(@task.namespace).to receive(:run_without_rvm).with(expected) @configuration.execute_task @task end it "should empty a system-wide gemset" do @configuration.set :rvm_type, :system @@ -24,9 +24,9 @@ if id | grep ' groups=.*(rvm)' >/dev/null ; then /usr/local/rvm/bin/rvm 2.0.0 do rvm --force gemset empty #{@gemset} ; else sudo -p 'sudo password: ' sg rvm -c '/usr/local/rvm/bin/rvm 2.0.0 do rvm --force gemset empty #{@gemset}' ; fi EOSHELL - @task.namespace.should_receive(:run_without_rvm).with(expected) + expect(@task.namespace).to receive(:run_without_rvm).with(expected) @configuration.execute_task @task end end