spec/controllers/naf/machines_controller_spec.rb in naf-1.1.4 vs spec/controllers/naf/machines_controller_spec.rb in naf-2.0.0
- old
+ new
@@ -8,11 +8,11 @@
response.should render_template("naf/machines/index")
response.should be_success
end
it "should respond with the show action" do
+ machine = FactoryGirl.create(:machine, id: 5, server_address: '127.0.0.2')
id = 5
- Machine.should_receive(:find).with("5").and_return(nil)
get :show, id: id
response.should be_success
end
it "should respond with the edit action" do