diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-22 17:33:26 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-22 17:33:26 +0100 |
commit | 5116263e02fce228f9d1006945cb311829a7b586 (patch) | |
tree | 9871b7734b9ca66ff2f306bf0b01d62439eccde5 /spec/lib/health_checks/health_checkable_spec.rb | |
parent | 28c807f84a39e58c0dd74e9db7808b5a9d70e796 (diff) | |
parent | 0bd8370c328d678f8f2b7bb4e48c6dbaf0974451 (diff) |
Merge remote-tracking branch 'jpmckinney_github/okcheck' into rails-3-develop
Diffstat (limited to 'spec/lib/health_checks/health_checkable_spec.rb')
-rw-r--r-- | spec/lib/health_checks/health_checkable_spec.rb | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/spec/lib/health_checks/health_checkable_spec.rb b/spec/lib/health_checks/health_checkable_spec.rb index 301585bbd..59d76c337 100644 --- a/spec/lib/health_checks/health_checkable_spec.rb +++ b/spec/lib/health_checks/health_checkable_spec.rb @@ -32,24 +32,10 @@ describe HealthChecks::HealthCheckable do end - describe :check do - - it 'is intended to be overridden by the includer' do - expect{ @subject.check }.to raise_error(NotImplementedError) - end - - end - describe :ok? do - it 'returns true if the check was successful' do - @subject.stub(:check => true) - expect(@subject.ok?).to be_true - end - - it 'returns false if the check failed' do - @subject.stub(:check => false) - expect(@subject.ok?).to be_false + it 'is intended to be overridden by the includer' do + expect{ @subject.ok? }.to raise_error(NotImplementedError) end end @@ -93,7 +79,7 @@ describe HealthChecks::HealthCheckable do context 'if the check succeeds' do before(:each) do - @subject.stub(:check => true) + @subject.stub(:ok? => true) end it 'returns the default success message' do @@ -110,7 +96,7 @@ describe HealthChecks::HealthCheckable do context 'if the check fails' do before(:each) do - @subject.stub(:check => false) + @subject.stub(:ok? => false) end it 'returns the default failure message' do |