spec/controllers/dashing/widgets_controller_spec.rb in dashing-rails-2.6.1 vs spec/controllers/dashing/widgets_controller_spec.rb in dashing-rails-2.6.2

- old
+ new

@@ -1,11 +1,12 @@ RSpec.describe Dashing::WidgetsController do let(:redis) { double } + let(:redis_connection) { double } before do - stub_redis(redis) + stub_redis_with_connection(redis, redis_connection) @routes = Dashing::Engine.routes end describe 'GET "show"' do @@ -47,10 +48,10 @@ end context 'when valid' do before do - expect(redis).to receive(:publish) + expect(redis_connection).to receive(:publish) end it 'responds success' do action(name: 'foo') expect(response).to be_success