spec/controllers/users_controller_spec.rb in consul-0.1.2 vs spec/controllers/users_controller_spec.rb in consul-0.2.0

- old
+ new

@@ -1,13 +1,13 @@ require File.dirname(__FILE__) + '/../spec_helper' describe UsersController do it "should raise an error if the checked power is not given" do - expect { get :show, :id => '1' }.to raise_error(Consul::Powerless) + expect { get :update, :id => '1' }.to raise_error(Consul::Powerless) end - it 'should allow to map actions to another power' do - expect { get :index }.to_not raise_error + it 'should allow to map actions to another power using the :map option' do + expect { get :show, :id => '1' }.to_not raise_error end end