fakes 0.3.8 → 0.4.0

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/lib/core/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fakes
2
- VERSION = "0.3.8"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/fakes.rb CHANGED
@@ -18,7 +18,7 @@ class Object
18
18
  def fake
19
19
  return Fakes::Fake.new
20
20
  end
21
- def matches
21
+ def arg_match
22
22
  return Fakes::Matches
23
23
  end
24
24
  def fake_class(klass)
@@ -1,3 +1,5 @@
1
+ require 'spec_helper'
2
+
1
3
  describe Object do
2
4
  it "should be able to create a new fake" do
3
5
  fake.class.should == Fakes::Fake
@@ -13,7 +15,7 @@ describe Object do
13
15
  end
14
16
 
15
17
  it "should register a new fake with the class swaps" do
16
- swaps.received(:add_fake_for).called_with(Dir,matches.not_nil).should_not be_nil
18
+ swaps.received(:add_fake_for).called_with(Dir,arg_match.not_nil).should_not be_nil
17
19
  end
18
20
 
19
21
  it "should return the newly created fake" 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.8
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: