diff --git a/app/controllers/multis_controller.rb b/app/controllers/multis_controller.rb index 5ece83fad..84cf43bb6 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 35311af75..874b18608 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