Merge pull request #1845 from fermionic/1811-mobile-share-button
1811 mobile share button
This commit is contained in:
commit
e25decedc3
2 changed files with 13 additions and 1 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue