spec/zertico/controller_spec.rb in zertico-0.5.0 vs spec/zertico/controller_spec.rb in zertico-0.5.1
- old
+ new
@@ -30,20 +30,20 @@
it 'should intialize an object with it' do
controller.instance_variable_get('@responder').should == 'admin'
end
end
- context 'with a custom path to redirect' do
+ context 'with a custom location to redirect' do
before :each do
controller.stub_chain(:interface_name, :to_sym).and_return(:user)
controller.stub(:params).and_return({ :user => 'user' })
- controller.stub(:generate => { :user => 'user', :path => 'admin_path' } )
+ controller.stub(:generate => { :user => 'user', :location => 'admin_location' } )
controller.stub(:respond_with)
controller.create
end
it 'should intialize an object with it' do
- controller.instance_variable_get('@path').should == 'admin_path'
+ controller.instance_variable_get('@location').should == 'admin_location'
end
end
context '#index' do
before :each do
\ No newline at end of file