Sha256: 0660bb801351671a5a50b3e5a942aebfad5b00fdf577f12afac002c034ad486b
Contents?: true
Size: 919 Bytes
Versions: 5
Compression:
Stored size: 919 Bytes
Contents
require 'spec_helper' describe DefaultFallbackController do render_views it "should find the correct view when it exists" do force_mobile_request_agent get :index response.should render_template(:index) response.body.should contain("MOBILE VIEW") end it "should find the correct view when it exists" do reset_test_request_agent get :index response.should render_template(:index) response.body.should contain("HTML VIEW") end it "should fall back to the default request format when it doesnt" do force_mobile_request_agent get :test response.should render_template(:test) response.body.should contain("HTML VIEW") end it "should fall back to the default request format when it doesnt (js)" do force_mobile_request_agent get :test, :format => :js response.should render_template(:test) response.body.should contain("JS VIEW") end end
Version data entries
5 entries across 5 versions & 1 rubygems