spec/controllers/dashing/widgets_controller_spec.rb in dashing-rails-2.4.1 vs spec/controllers/dashing/widgets_controller_spec.rb in dashing-rails-2.4.2
- old
+ new
@@ -4,16 +4,17 @@
let(:redis) { double }
before do
stub_redis(redis)
+ @routes = Dashing::Engine.routes
end
describe 'GET "show"' do
def action(params = {})
- get :show, params.merge(use_route: :dashing)
+ get :show, params
end
context 'when default template exists' do
it 'responds success' do
@@ -42,10 +43,10 @@
end
describe 'PUT "update"' do
def action(params = {})
- put :update, params.merge(use_route: :dashing)
+ put :update, params
end
context 'when valid' do
before do