fairway 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fairway (0.0.1)
4
+ fairway (0.0.2)
5
5
  activesupport
6
6
  hiredis
7
7
  redis
@@ -10,8 +10,8 @@ module Fairway
10
10
  @connection.deliver(message, channel)
11
11
  end
12
12
 
13
- def method_missing(method, *args)
14
- @connection.respond_to?(method) ? @connection.send(method, *args) : super
13
+ def method_missing(method, *args, &block)
14
+ @connection.respond_to?(method) ? @connection.send(method, *args, &block) : super
15
15
  end
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Fairway
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -17,8 +17,14 @@ module Fairway
17
17
  let(:message) { { facet: 1, topic: "event:helloworld" } }
18
18
 
19
19
  it "delegates non existant methods to parent connection" do
20
- base_connection.should_receive(:random_method)
21
- connection.random_method
20
+ base_connection.should_receive(:random_method) do |arg1, arg2, &block|
21
+ block.call(arg1, arg2)
22
+ end
23
+
24
+ connection.random_method(1, 2) do |arg1, arg2|
25
+ arg1.should == 1
26
+ arg2.should == 2
27
+ end
22
28
  end
23
29
 
24
30
  describe "#deliver" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fairway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: