From dfe9e15107a7c7ea0957913745ba8e9a78715f7b Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Mon, 29 Aug 2011 21:22:07 -0600 Subject: [PATCH 1/2] Issue #1811: Share button missing in mobile version --- app/views/shared/_publisher.mobile.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_publisher.mobile.haml b/app/views/shared/_publisher.mobile.haml index f78d8a524..446846282 100644 --- a/app/views/shared/_publisher.mobile.haml +++ b/app/views/shared/_publisher.mobile.haml @@ -49,5 +49,5 @@ -#- current_user.services.each do |service| -#%option{:value => "#{service.provider}"} -#= service.provider.titleize - = status.submit t('.share'), 'data-theme' => 'c' + = status.submit t('.share'), 'data-theme' => 'c' From 3f5dd7e5b1ee324d538029e269951c100eb79cba Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Mon, 29 Aug 2011 22:30:14 -0600 Subject: [PATCH 2/2] 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