From 232c4b7931337974279b3c8097820824d5935242 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg <maxwell@joindiaspora.com> Date: Sat, 7 Jan 2012 23:28:25 -0800 Subject: [PATCH] fix for mobile multi stream [ci skip] --- app/controllers/multis_controller.rb | 1 + spec/controllers/multis_controller_spec.rb | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/controllers/multis_controller.rb b/app/controllers/multis_controller.rb index 5ece83fadf..84cf43bb61 100644 --- a/app/controllers/multis_controller.rb +++ b/app/controllers/multis_controller.rb @@ -14,6 +14,7 @@ class MultisController < ApplicationController respond_with do |format| format.html{ default_stream_action(stream_klass) } + format.mobile{ default_stream_action(stream_klass) } format.json{ stream_json(stream_klass) } end end diff --git a/spec/controllers/multis_controller_spec.rb b/spec/controllers/multis_controller_spec.rb index 35311af75b..874b186084 100644 --- a/spec/controllers/multis_controller_spec.rb +++ b/spec/controllers/multis_controller_spec.rb @@ -26,5 +26,10 @@ describe MultisController do get :index response.should be_success end + + it 'succeeds on mobile' do + get :index, :format => :mobile + response.should be_success + end end end -- GitLab