Sha256: 024e7f632d447e21f78ad972319add82eec3dd1fd52cf7de6c82b08f204441e4
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe SongsController do it "should raise an error if an action is not checked against a power" do expect { get :show, :id => '123' }.to raise_error(Consul::UncheckedPower) end it 'should allow to skip a required power check' 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/songs_controller_spec.rb |
consul-0.1.1 | spec/controllers/songs_controller_spec.rb |