Sha256: ff4698bd06ad7be4397cbceb3c90296b4fdaac927d2522366951abfd8fb66160

Contents?: true

Size: 356 Bytes

Versions: 19

Compression:

Stored size: 356 Bytes

Contents

require 'spec_helper'

describe SongsController, :type => :controller 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

19 entries across 19 versions & 1 rubygems

Version Path
consul-0.12.2 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.12.1 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.12.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.11.2 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.11.1 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.11.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.10.2 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.10.1 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.10.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.9.1 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.9.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.8.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.7.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.6.1 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.6.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.5.0 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.4.2 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.4.1 spec/shared/consul/controllers/songs_controller_spec.rb
consul-0.4.0 spec/shared/controllers/songs_controller_spec.rb