Skip to content

Instantly share code, notes, and snippets.

@myronmarston myronmarston/Gemfile
Last active Aug 29, 2015

Embed
What would you like to do?
require 'celluloid'
RSpec.describe "Celluloid" do
it 'can mock a method' do
foo = Celluloid::AsyncProxy.new([], :bar)
expect(foo).to receive(:bar).once
foo.bar
end
end
# A sample Gemfile
source "https://rubygems.org"
gem 'celluloid'
gem 'rspec'
GEM
remote: https://rubygems.org/
specs:
celluloid (0.15.2)
timers (~> 1.1.0)
diff-lcs (1.2.5)
rspec (3.0.0)
rspec-core (~> 3.0.0)
rspec-expectations (~> 3.0.0)
rspec-mocks (~> 3.0.0)
rspec-core (3.0.2)
rspec-support (~> 3.0.0)
rspec-expectations (3.0.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.0.0)
rspec-mocks (3.0.2)
rspec-support (~> 3.0.0)
rspec-support (3.0.2)
timers (1.1.0)
PLATFORMS
ruby
DEPENDENCIES
celluloid
rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.