Sha256: 01346a0f77ce24bda34f4b5a01691e094f7f7fdb1fb1d7813a1f6c31d34b7ed4
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
require 'spec_helper' # # # All examples are using namespaces # # feature 'executing Paloma controller', :js => true do context 'default behavior' do it 'executes the same namespace/controller/action' do visit admin_foos_path expect( request['controller'] == 'Admin/Foos' && request['action'] == 'index' && request['params'] == {} ).to be_truthy end end context 'override default controller' do it 'executes the specified controller' do visit admin_foo_path(1) expect( request['controller'] == 'NotAdmin/Foos' && request['action'] == 'show' && request['params'] == {'x' => 99} ).to be_truthy end end context 'override default action' do it 'executes the specified action' do visit new_admin_foo_path expect( request['controller'] == 'Admin/Foos' && request['action'] == 'otherAction' && request['params'] == {'x' => 99} ).to be_truthy end end context 'override default controller/action' do it 'executes the specified controller/action' do visit edit_admin_foo_path(1) expect( request['controller'] == 'NotAdmin/Foos' && request['action'] == 'otherAction' && request['params'] == {'x' => 99} ).to be_truthy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paloma-4.2.1 | test_app/spec/integration/advanced_spec.rb |
paloma-4.2.0 | test_app/spec/integration/advanced_spec.rb |
paloma-4.1.2 | test_app/spec/integration/advanced_spec.rb |