spec/software_spec.rb in omnibus-1.2.0 vs spec/software_spec.rb in omnibus-1.3.0
- old
+ new
@@ -4,11 +4,11 @@
require 'spec_helper'
describe Omnibus::Software do
let(:project) do
- p = mock(Omnibus::Project)
- p.should_receive(:install_path).any_number_of_times.and_return("monkeys")
+ p = double(Omnibus::Project)
+ p.stub(:install_path).and_return("monkeys")
p
end
let(:software_name) { "erchef" }
let(:software_file){ software_path(software_name) }