fakes 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/core/arg_matching/arg_match_factory.rb +1 -1
- data/lib/core/arg_matching/block_arg_matcher.rb +0 -1
- data/lib/core/arg_matching/combined_arg_matcher.rb +0 -1
- data/lib/core/arg_matching/regular_arg_matcher.rb +0 -1
- data/lib/core/version.rb +1 -1
- data/lib/fakes.rb +0 -1
- data/spec/specs/arg_match_factory_spec.rb +1 -1
- metadata +1 -2
- data/lib/core/arg_matching/arg_match_protocol.rb +0 -6
@@ -3,7 +3,7 @@ module Fakes
|
|
3
3
|
def self.create_arg_matcher_using(args)
|
4
4
|
matcher = CombinedArgMatcher.new
|
5
5
|
args.each do|arg|
|
6
|
-
current_matcher = arg.respond_to?(:
|
6
|
+
current_matcher = arg.respond_to?(:matches?) ? arg : RegularArgMatcher.new(arg)
|
7
7
|
matcher.add current_matcher
|
8
8
|
end
|
9
9
|
matcher
|
data/lib/core/version.rb
CHANGED
data/lib/fakes.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'developwithpassion_arrays'
|
2
2
|
|
3
3
|
require 'core/arg_matching/arg_match_factory'
|
4
|
-
require 'core/arg_matching/arg_match_protocol'
|
5
4
|
require 'core/arg_matching/block_arg_matcher'
|
6
5
|
require 'core/arg_matching/combined_arg_matcher'
|
7
6
|
require 'core/arg_matching/matches'
|
@@ -18,7 +18,7 @@ module Fakes
|
|
18
18
|
context "and the arguments are matchers themselves" do
|
19
19
|
let(:matcher){Object.new}
|
20
20
|
before (:each) do
|
21
|
-
matcher.stub(:respond_to?).with(:
|
21
|
+
matcher.stub(:respond_to?).with(:matches?).and_return(true)
|
22
22
|
end
|
23
23
|
|
24
24
|
before (:each) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fakes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -109,7 +109,6 @@ files:
|
|
109
109
|
- fakes.gemspec
|
110
110
|
- lib/core/arg_behaviour.rb
|
111
111
|
- lib/core/arg_matching/arg_match_factory.rb
|
112
|
-
- lib/core/arg_matching/arg_match_protocol.rb
|
113
112
|
- lib/core/arg_matching/block_arg_matcher.rb
|
114
113
|
- lib/core/arg_matching/combined_arg_matcher.rb
|
115
114
|
- lib/core/arg_matching/matches.rb
|