Sha256: fc28bbcce781d7c157ce20abc355858abadb10489cb3884784f4800ee7f47cfb
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
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) end it 'should allow to map actions to another power' do expect { get :index }.to_not raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
consul-0.1.2 | spec/controllers/users_controller_spec.rb |
consul-0.1.1 | spec/controllers/users_controller_spec.rb |