Skip to content

Commit

Permalink
Update development dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Aug 23, 2023
1 parent 010d42d commit 86135fb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
14 changes: 7 additions & 7 deletions pusher-fake.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ Gem::Specification.new do |s|
s.add_dependency "multi_json", "~> 1.6"
s.add_dependency "thin", "~> 1"

s.add_development_dependency "capybara", "3.39.1"
s.add_development_dependency "puma", "6.3.0"
s.add_development_dependency "capybara", "3.39.2"
s.add_development_dependency "puma", "6.3.1"
s.add_development_dependency "pusher", "2.0.3"
s.add_development_dependency "rake", "13.0.6"
s.add_development_dependency "rspec", "3.12.0"
s.add_development_dependency "rubocop", "1.51.0"
s.add_development_dependency "rubocop", "1.56.1"
s.add_development_dependency "rubocop-capybara", "2.18.0"
s.add_development_dependency "rubocop-performance", "1.18.0"
s.add_development_dependency "rubocop-performance", "1.19.0"
s.add_development_dependency "rubocop-rake", "0.6.0"
s.add_development_dependency "rubocop-rspec", "2.22.0"
s.add_development_dependency "selenium-webdriver", "4.9.1"
s.add_development_dependency "sinatra", "3.0.6"
s.add_development_dependency "rubocop-rspec", "2.23.2"
s.add_development_dependency "selenium-webdriver", "4.11.0"
s.add_development_dependency "sinatra", "3.1.0"
s.add_development_dependency "yard", "0.9.34"
end
15 changes: 7 additions & 8 deletions spec/lib/pusher-fake/channel/presence_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@
before do
allow(PusherFake::Webhook).to receive(:trigger)
allow(MultiJson).to receive(:load).and_return(channel_data)
allow(subject).to receive(:connections).and_return(connections)
allow(subject).to receive(:emit).and_return(nil)
allow(subject).to receive(:subscription_data).and_return(subscription_data)
allow(subject).to receive_messages(
connections: connections,
emit: nil,
subscription_data: subscription_data
)
end

it "authorizes the connection" do
Expand Down Expand Up @@ -150,8 +152,7 @@

before do
allow(PusherFake::Webhook).to receive(:trigger)
allow(subject).to receive(:connections).and_return([connection])
allow(subject).to receive(:emit).and_return(nil)
allow(subject).to receive_messages(connections: [connection], emit: nil)

subject.members[connection] = channel_data
end
Expand Down Expand Up @@ -193,9 +194,7 @@
let(:channel_data) { { user_id: user_id } }

before do
allow(subject).to receive(:connections).and_return([])
allow(subject).to receive(:emit).and_return(nil)
allow(subject).to receive(:trigger).and_return(nil)
allow(subject).to receive_messages(connections: [], emit: nil, trigger: nil)
end

it "does not raise an error" do
Expand Down
6 changes: 2 additions & 4 deletions spec/lib/pusher-fake/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@
end

it "does not emit the event when the channel is not private" do
allow(channel).to receive(:is_a?).and_return(false)
allow(channel).to receive(:includes?).and_return(true)
allow(channel).to receive_messages(is_a?: false, includes?: true)

subject.process(json)

Expand Down Expand Up @@ -294,8 +293,7 @@
end

it "includes user ID in event when on a presence channel" do
allow(channel).to receive(:is_a?).and_return(true)
allow(channel).to receive(:members).and_return(members)
allow(channel).to receive_messages(is_a?: true, members: members)

subject.process(json)

Expand Down
3 changes: 1 addition & 2 deletions spec/lib/pusher-fake/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
subject { described_class }

before do
allow(subject).to receive(:start_web_server).and_return(nil)
allow(subject).to receive(:start_socket_server).and_return(nil)
allow(subject).to receive_messages(start_web_server: nil, start_socket_server: nil)
allow(EventMachine).to receive(:run).and_return(nil)
end

Expand Down

0 comments on commit 86135fb

Please sign in to comment.