Sha256: b7534a085e4ae2b105f338a7d18cd2078a3151c0a9796a50d10e2fc7960d90cf

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 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 :update, :id => '1' }.to raise_error(Consul::Powerless)
  end

  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
consul-0.2.3 spec/controllers/users_controller_spec.rb
consul-0.2.2 spec/controllers/users_controller_spec.rb
consul-0.2.1 spec/controllers/users_controller_spec.rb
consul-0.2.0 spec/controllers/users_controller_spec.rb