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' diff --git a/spec/controllers/aspects_controller_spec.rb b/spec/controllers/aspects_controller_spec.rb index 6234419a5..3dc102999 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