From d157b1feffb6a66c24f8a716109c6923c390df90 Mon Sep 17 00:00:00 2001 From: Bashir Eghbali Date: Fri, 21 Feb 2014 16:09:57 -0800 Subject: [PATCH] fixed specs --- .../spec/controllers/impressionist_uniqueness_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_app/spec/controllers/impressionist_uniqueness_spec.rb b/tests/test_app/spec/controllers/impressionist_uniqueness_spec.rb index 3d445d8..0986c57 100644 --- a/tests/test_app/spec/controllers/impressionist_uniqueness_spec.rb +++ b/tests/test_app/spec/controllers/impressionist_uniqueness_spec.rb @@ -331,7 +331,7 @@ describe DummyController do end it_behaves_like 'an impressionable action' do - let(:condition) {{ if: lambda { true_condition } }} + let(:condition) {{ if: lambda { true } }} end end @@ -344,7 +344,7 @@ describe DummyController do end it_behaves_like 'an unimpressionable action' do - let(:condition) {{ if: lambda { false_condition } }} + let(:condition) {{ if: lambda { false } }} end end end @@ -359,7 +359,7 @@ describe DummyController do end it_behaves_like 'an unimpressionable action' do - let(:condition) {{ unless: lambda { true_condition } }} + let(:condition) {{ unless: lambda { true } }} end end @@ -368,11 +368,11 @@ describe DummyController do controller.stub(:false_condition).and_return(false) end it_behaves_like 'an impressionable action' do - let(:condition) {{ if: :false_condition }} + let(:condition) {{ unless: :false_condition }} end it_behaves_like 'an impressionable action' do - let(:condition) {{ if: lambda { false_condition } }} + let(:condition) {{ unless: lambda { false } }} end end end