developwithpassion_fakes-rspec 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.
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Faking library that allows inspection of received calls after they have been made. Also supports tracking calls with multiple argument sets.}
14
14
  s.rubyforge_project = "developwithpassion_fakes-rspec"
15
15
 
16
- s.files = `git ls-files`.split("\n")
16
+ s.files = `git ls-files | grep -P "^(dev|lib)"`.split("\n")
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
@@ -1,7 +1,7 @@
1
1
  module DevelopWithPassion
2
2
  module Fakes
3
3
  module RSpec
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: developwithpassion_fakes-rspec
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:
@@ -13,7 +13,7 @@ date: 2012-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70234493577440 !ruby/object:Gem::Requirement
16
+ requirement: &70229401423560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70234493577440
24
+ version_requirements: *70229401423560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: guard
27
- requirement: &70234493576840 !ruby/object:Gem::Requirement
27
+ requirement: &70229401423120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70234493576840
35
+ version_requirements: *70229401423120
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: guard-rspec
38
- requirement: &70234493576420 !ruby/object:Gem::Requirement
38
+ requirement: &70229401422560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70234493576420
46
+ version_requirements: *70229401422560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70234493575960 !ruby/object:Gem::Requirement
49
+ requirement: &70229401422120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70234493575960
57
+ version_requirements: *70229401422120
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: developwithpassion_fakes
60
- requirement: &70234493575440 !ruby/object:Gem::Requirement
60
+ requirement: &70229401421600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70234493575440
68
+ version_requirements: *70229401421600
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-core
71
- requirement: &70234493574980 !ruby/object:Gem::Requirement
71
+ requirement: &70229401421160 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70234493574980
79
+ version_requirements: *70229401421160
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rspec-expectations
82
- requirement: &70234493574560 !ruby/object:Gem::Requirement
82
+ requirement: &70229401420700 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70234493574560
90
+ version_requirements: *70229401420700
91
91
  description: Faking library that allows inspection of received calls after they have
92
92
  been made. Also supports tracking calls with multiple argument sets.
93
93
  email:
@@ -96,12 +96,6 @@ executables: []
96
96
  extensions: []
97
97
  extra_rdoc_files: []
98
98
  files:
99
- - .gitignore
100
- - .rvmrc
101
- - Gemfile
102
- - Guardfile
103
- - README.md
104
- - Rakefile
105
99
  - developwithpassion_fakes-rspec.gemspec
106
100
  - lib/core/received_criteria.rb
107
101
  - lib/core/rspec_utils.rb
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- blah.rb
2
- *.gem
3
- .bundle
4
- Gemfile.lock
5
- pkg/*
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3@developwithpassion_fakes-rspec --create
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec
data/Guardfile DELETED
@@ -1,5 +0,0 @@
1
- guard 'rspec' do
2
- watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
- watch('spec/spec_helper.rb') { "spec" }
5
- end
data/README.md DELETED
@@ -1,28 +0,0 @@
1
- #developwithpassion_fakes-rspec
2
-
3
- This is a library to aid in the usage of [developwithpassion_fakes](http://github.com/developwithpassion/developwithpassion_fakes) when using [RSpec](https://github.com/rspec/rspec). It basically just adds the convienience matcher: have_received which you would use as follows:
4
-
5
- ```ruby
6
- it "should be able to determine if a call was made on a fake" do
7
- the_fake = fake
8
- fake.hello("World")
9
-
10
- fake.should have_received(:hello) #true
11
- fake.should have_received(:hello,"World") #true
12
- fake.should have_received(:hello,"Other") #false
13
- end
14
- ```
15
- Or conversely:
16
-
17
- ```ruby
18
- it "should be able to determine if a call was never made on a fake" do
19
- the_fake = fake
20
- fake.hello("World")
21
-
22
- fake.should_not have_received(:goodbye) #true
23
- fake.should_not have_received(:hello,"Earth") #true
24
- fake.should_not have_received(:hello) #false
25
- end
26
- ```
27
-
28
- [Develop With Passion®](http://www.developwithpassion.com)
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "bundler/gem_tasks"