From 341f8c88777c7613b9028ab9c5a139944431748e Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 5 Sep 2013 17:01:10 -0400 Subject: [PATCH] fix application_helper_spec --- spec/helpers/application_helper_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 6300905d2c7..aa16b6adbd5 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -18,9 +18,12 @@ describe ApplicationHelper do helper.mobile_view?.should be_false end - it "is true if mobile_view is not set and user agent is mobile" do + #it "is true if mobile_view is not set and user agent is mobile" do + it "is always false, even if user agent is for mobile device... for now..." do controller.request.stubs(:user_agent).returns('Mozilla/5.0 (iPhone; U; ru; CPU iPhone OS 4_2_1 like Mac OS X; ru) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148a Safari/6533.18.5') - helper.mobile_view?.should be_true + #helper.mobile_view?.should be_true + # TODO: It's always false for now + helper.mobile_view?.should be_false end end