Skip to content

Commit

Permalink
Fix celluloid backport warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tanapoln committed Nov 28, 2015
1 parent 51b0d0e commit 35def01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/wisper/celluloid_broadcaster.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'celluloid/autostart'
require 'celluloid/current'

module Wisper
class CelluloidBroadcaster
Expand Down
6 changes: 4 additions & 2 deletions spec/celluloid_broadcaster_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'pathname'

module Wisper
describe CelluloidBroadcaster do
FILE_PATH = Pathname(File.dirname(__FILE__)).join('test_file')
Expand Down Expand Up @@ -33,7 +35,7 @@ def touch_file
# for sanity...
describe 'without CelluloidBroadcaster' do
it "takes longer than #{SLEEP_FOR} seconds" do
publisher.add_listener(MyListener.new)
publisher.subscribe(MyListener.new)
duration = time { publisher.ping }
expect(duration).to be > SLEEP_FOR
expect(file_touched?).to eql true
Expand All @@ -42,7 +44,7 @@ def touch_file
end

it "takes less than #{SLEEP_FOR} seconds" do
publisher.add_listener(MyListener.new, async: subject)
publisher.subscribe(MyListener.new, async: subject)
duration = time { publisher.ping }
expect(duration).to be < SLEEP_FOR
expect(file_touched?).to eql true
Expand Down
4 changes: 2 additions & 2 deletions wisper-celluloid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"

spec.add_dependency 'wisper'
spec.add_dependency 'celluloid'
spec.add_dependency 'wisper', "2.0.0.rc1"
spec.add_dependency 'celluloid', "0.17.2"
end

0 comments on commit 35def01

Please sign in to comment.