Sha256: f09e63bb2071fbb14f128365cc83ef30b41c7e75e61af5d2c52cd7b2f22a56e4
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
require "spec_helper" describe TestController do context "via the mobile UI" do describe "GET /#{MobileEnhancements.configuration.mobile_path_prefix}/two" do before { get :two, mobile: MobileEnhancements.configuration.mobile_path_prefix } it "should render 'two, #{MobileEnhancements.configuration.mobile_format}'" do expect(@response.body).to eq "two, #{MobileEnhancements.configuration.mobile_format}" end end end context "via the desktop UI" do describe "GET /two" do before { get :two } it "should render 'two, html'" do expect(@response.body).to eq "two, html" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mobile-enhancements-0.0.2 | spec/controllers/test_controller_spec.rb |