Sha256: 7f0d19e60e23337b3b8f0cb8d93c4bf35b5e6f61d8c0b3f5ebfdb1338f58274f
Contents?: true
Size: 890 Bytes
Versions: 4
Compression:
Stored size: 890 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe TestController do include RSpec::Rails::ControllerExampleGroup render_views it 'should set correct body classes' do get :base assert_select 'body.c_test.v_base.l_application' end it 'should set correct meta tags' do get :base assert_select 'meta[name=edifice-view_path][content=test]' assert_select 'meta[name=edifice-view_name][content=base]' assert_select 'meta[name=edifice-layout][content=application]' end it 'should set correct response headers' do get :base response.headers.keys.should include('x-edifice-view_path', 'x-edifice-view_name', 'x-edifice-layout') response.headers['x-edifice-view_path'].should ==('test') response.headers['x-edifice-view_name'].should ==('base') response.headers['x-edifice-layout'].should ==('application') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
edifice-1.3.0 | spec/edifice_controller_spec.rb |
edifice-1.2.0 | spec/edifice_controller_spec.rb |
edifice-1.1.1 | spec/edifice_controller_spec.rb |
edifice-1.1.0 | spec/edifice_controller_spec.rb |