Sha256: 238806a7dcffe187d3978e83a1b0c7400ee3fe036bea511a43e5ae7f7e10b1c2

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe SongsController do

  it 'should allow to skip a required power check' do
    expect { get :show, :id => '1' }.to_not raise_error
  end

  it "should raise an error if an action is not checked against a power" do
    expect { put :update, :id => '1' }.to raise_error(Consul::UncheckedPower)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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