From 3f5dd7e5b1ee324d538029e269951c100eb79cba Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Mon, 29 Aug 2011 22:30:14 -0600 Subject: [PATCH] Issue #1811: Share button missing in mobile version --- spec/controllers/aspects_controller_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/controllers/aspects_controller_spec.rb b/spec/controllers/aspects_controller_spec.rb index 0569498a9..1807a96c7 100644 --- a/spec/controllers/aspects_controller_spec.rb +++ b/spec/controllers/aspects_controller_spec.rb @@ -116,6 +116,18 @@ describe AspectsController do save_fixture(html_for("body"), "aspects_index_with_a_post_with_likes") end + context "mobile" do + it "renders a share button when you don't pass aspect IDs" do + get :index, :format => :mobile + response.body.should =~ /#{Regexp.escape('id="status_message_submit"')}/ + end + + it "renders a share button when you pass aspect IDs" do + get :index, :a_ids => [@alices_aspect_1], :format => :mobile + response.body.should =~ /#{Regexp.escape('id="status_message_submit"')}/ + end + end + context 'with getting_started = true' do before do alice.getting_started = true