mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
Remove additional tests
This commit is contained in:
parent
0a5ccaf8db
commit
5e5f183ebe
4 changed files with 1 additions and 40 deletions
|
@ -43,9 +43,4 @@ Foos.prototype.otherAction = function(){};
|
||||||
|
|
||||||
var NotFoos = Paloma.controller('NotAdmin/Foos');
|
var NotFoos = Paloma.controller('NotAdmin/Foos');
|
||||||
NotFoos.prototype.show = function(){};
|
NotFoos.prototype.show = function(){};
|
||||||
NotFoos.prototype.otherAction = function(){};
|
NotFoos.prototype.otherAction = function(){};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var Baz = Paloma.controller('Baz');
|
|
||||||
Baz.prototype.index = function(){};
|
|
|
@ -1,7 +0,0 @@
|
||||||
class BarsController < ApplicationController
|
|
||||||
|
|
||||||
def index
|
|
||||||
render :inline => 'Bars#index', :layout => 'application'
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
|
@ -19,7 +19,4 @@ TestApp::Application.routes.draw do
|
||||||
namespace :admin do
|
namespace :admin do
|
||||||
resources :foos
|
resources :foos
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
resources :bars
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -57,28 +57,4 @@ feature 'executing Paloma controller', :js => true do
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Controller-wide settings
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
context 'global controller' do
|
|
||||||
before do
|
|
||||||
BarsController.send :js, 'Baz'
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'executes the specified controller' do
|
|
||||||
visit bars_path
|
|
||||||
|
|
||||||
expect(request).to eq({
|
|
||||||
'controller' => 'Baz',
|
|
||||||
'action' => 'index',
|
|
||||||
'params' => {}})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
Loading…
Add table
Reference in a new issue