fakes 0.3.1 → 0.3.2

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.
@@ -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?(:is_used_in_the_arg_matching_process?) ? arg : RegularArgMatcher.new(arg)
6
+ current_matcher = arg.respond_to?(:matches?) ? arg : RegularArgMatcher.new(arg)
7
7
  matcher.add current_matcher
8
8
  end
9
9
  matcher
@@ -1,6 +1,5 @@
1
1
  module Fakes
2
2
  class BlockArgMatcher
3
- include ArgMatchProtocol
4
3
 
5
4
  def initialize(specification_block)
6
5
  @specification_block = specification_block
@@ -1,6 +1,5 @@
1
1
  module Fakes
2
2
  class CombinedArgMatcher
3
- include ArgMatchProtocol
4
3
  attr_reader :all_matchers
5
4
 
6
5
  def initialize(options = {})
@@ -1,6 +1,5 @@
1
1
  module Fakes
2
2
  class RegularArgMatcher
3
- include ArgMatchProtocol
4
3
 
5
4
  def initialize(value_to_match)
6
5
  @value_to_match = value_to_match
data/lib/core/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fakes
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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(:is_used_in_the_arg_matching_process?).and_return(true)
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.1
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
@@ -1,6 +0,0 @@
1
- module Fakes
2
- module ArgMatchProtocol
3
- def is_used_in_the_arg_matching_process?
4
- end
5
- end
6
- end