Skip to content

Instantly share code, notes, and snippets.

@sarahmei
Created August 30, 2011 03:55
Show Gist options
  • Save sarahmei/1180141 to your computer and use it in GitHub Desktop.
Save sarahmei/1180141 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment