fix for mobile multi stream [ci skip]
This commit is contained in:
parent
d38e75c1f5
commit
232c4b7931
2 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ class MultisController < ApplicationController
|
||||||
|
|
||||||
respond_with do |format|
|
respond_with do |format|
|
||||||
format.html{ default_stream_action(stream_klass) }
|
format.html{ default_stream_action(stream_klass) }
|
||||||
|
format.mobile{ default_stream_action(stream_klass) }
|
||||||
format.json{ stream_json(stream_klass) }
|
format.json{ stream_json(stream_klass) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -26,5 +26,10 @@ describe MultisController do
|
||||||
get :index
|
get :index
|
||||||
response.should be_success
|
response.should be_success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'succeeds on mobile' do
|
||||||
|
get :index, :format => :mobile
|
||||||
|
response.should be_success
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue