developwithpassion_fakes-rspec 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/developwithpassion_fakes-rspec.gemspec +1 -1
- data/lib/core/version.rb +1 -1
- metadata +15 -21
- data/.gitignore +0 -5
- data/.rvmrc +0 -1
- data/Gemfile +0 -3
- data/Guardfile +0 -5
- data/README.md +0 -28
- data/Rakefile +0 -1
@@ -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"]
|
data/lib/core/version.rb
CHANGED
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.
|
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: &
|
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: *
|
24
|
+
version_requirements: *70229401423560
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: guard
|
27
|
-
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: *
|
35
|
+
version_requirements: *70229401423120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: guard-rspec
|
38
|
-
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: *
|
46
|
+
version_requirements: *70229401422560
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
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: *
|
57
|
+
version_requirements: *70229401422120
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: developwithpassion_fakes
|
60
|
-
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: *
|
68
|
+
version_requirements: *70229401421600
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-core
|
71
|
-
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: *
|
79
|
+
version_requirements: *70229401421160
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rspec-expectations
|
82
|
-
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: *
|
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
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm 1.9.3@developwithpassion_fakes-rspec --create
|
data/Gemfile
DELETED
data/Guardfile
DELETED
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"
|