Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed Nov 6, 2014
1 parent c297529 commit 6aa4abf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/stoplight/light_spec.rb
Expand Up @@ -236,16 +236,17 @@
subject(:result) do
begin
light.run
rescue Stoplight::Error::RedLight
rescue ZeroDivisionError
nil
end
end

let(:code_result) { 1 / 0 }
let(:error_class) { HipChat::Unauthorized }
let(:threshold) { 1 }

before do
Stoplight.data_store.set_state(
light.name, Stoplight::DataStore::STATE_LOCKED_RED)
light.with_threshold(threshold)
allow(room).to receive(:send).with(
'Stoplight',
/\A@all /,
Expand Down

0 comments on commit 6aa4abf

Please sign in to comment.