Sha256: e6b35e1c30df0b3b5441f08ef21a7ba25630a6a3c31c266a5d4c91b935c63a2e

Contents?: true

Size: 273 Bytes

Versions: 19

Compression:

Stored size: 273 Bytes

Contents

require 'spec_helper'

describe RisksController, :type => :controller do

  it "should raise an error it includes Consul::Controller but forgets to define current_power do ... end" do
    expect { put :show, :id => '1' }.to raise_error(Consul::UnreachablePower)
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

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