spec/zertico/controller_spec.rb in zertico-1.0.0 vs spec/zertico/controller_spec.rb in zertico-1.1.0
- old
+ new
@@ -33,18 +33,17 @@
end
end
context 'actions' do
before :each do
- controller.instance_variable_set('@responder', 'responder')
controller.instance_variable_set('@options', 'options')
controller.stub(:respond_with).with('responder', 'options')
end
context '#index' do
before :each do
- controller.stub(:all)
+ controller.stub(:all => 'responder')
end
after :each do
controller.index
end
@@ -58,11 +57,11 @@
end
end
context '#new' do
before :each do
- controller.stub(:build)
+ controller.stub(:build => 'responder')
end
after :each do
controller.new
end
@@ -76,11 +75,11 @@
end
end
context '#show' do
before :each do
- controller.stub(:find)
+ controller.stub(:find => 'responder')
end
after :each do
controller.show
end
@@ -94,11 +93,11 @@
end
end
context '#edit' do
before :each do
- controller.stub(:find)
+ controller.stub(:find => 'responder')
end
after :each do
controller.edit
end
@@ -112,11 +111,11 @@
end
end
context '#create' do
before :each do
- controller.stub(:generate)
+ controller.stub(:generate => 'responder')
end
after :each do
controller.create
end
@@ -130,11 +129,11 @@
end
end
context '#update' do
before :each do
- controller.stub(:modify)
+ controller.stub(:modify => 'responder')
end
after :each do
controller.update
end
@@ -148,10 +147,10 @@
end
end
context '#destroy' do
before :each do
- controller.stub(:delete)
+ controller.stub(:delete => 'responder')
end
after :each do
controller.destroy
end
\ No newline at end of file