Permalink
Browse files

Used correct forced_failure syntax

  • Loading branch information...
1 parent d7a0d62 commit e9075347b753f91af8f8d794481962cfbfab1de2 @ariejan committed Mar 8, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/battlestation/operations/process_check.rb
  2. +2 −2 spec/operations/process_spec.rb
@@ -14,7 +14,7 @@ def status
if process_running?
{ status: :okay, msg: "#{identifier} up and running", name: name }
else
- { status: opts[:error] ? :fail : :warn, msg: "#{identifier} not running", resolution: opts[:resolution], name: name }
+ { status: opts[:force_failure] ? :fail : :warn, msg: "#{identifier} not running", resolution: opts[:resolution], name: name }
end
end
@@ -17,8 +17,8 @@
it { subject.status.should include(name: "process-does-not-exist") }
end
- context "with an invalid process and forced error" do
- subject { Battlestation::Operations::ProcessCheck.new('does-not-exist', error: true) }
+ context "with an invalid process and forced failure" do
+ subject { Battlestation::Operations::ProcessCheck.new('does-not-exist', force_failure: true) }
it { subject.status.should include(status: :fail) }
it { subject.status.should include(msg: "does-not-exist not running") }

0 comments on commit e907534

Please sign in to comment.