flexmock 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -2
- data/Gemfile +4 -0
- data/README.md +1 -1
- data/Rakefile +8 -0
- data/flexmock.gemspec +1 -0
- data/lib/flexmock/core.rb +1 -0
- data/lib/flexmock/rspec.rb +1 -1
- data/lib/flexmock/rspec_spy_matcher.rb +8 -0
- data/lib/flexmock/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 158433b510fe021438b3e2c88a82b1ffd0efcb36
|
4
|
+
data.tar.gz: 65961b49054d7ff956bf6807d007aadb0b1105a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed5f37949186a46a14c4391ee4987f9b314acf1d876979a538704957526d24f7e1f6a67f00fd27a31d668b1b5086537a8a805269baae81d799059a3e041f94b3
|
7
|
+
data.tar.gz: 0c92dadcc4e1bea6951214e0e43704d6e677201ed53ea370eea3ad4ddfd9b60b6ec28a56264f98b59b73b216a7afdb830ce24376a1aa6836be78e12e38c5d296
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -116,7 +116,7 @@ to 0.6.0 required the explicit include.
|
|
116
116
|
## RSpec Integration
|
117
117
|
|
118
118
|
FlexMock also supports integration with the RSpec behavior
|
119
|
-
specification framework. Starting with version
|
119
|
+
specification framework. Starting with version 2.11.0 of RSpec, you
|
120
120
|
will be able to say:
|
121
121
|
|
122
122
|
```ruby
|
data/Rakefile
CHANGED
@@ -4,7 +4,15 @@ require "rake/testtask"
|
|
4
4
|
Rake::TestTask.new(:test) do |t|
|
5
5
|
t.libs << "test"
|
6
6
|
t.libs << "lib"
|
7
|
+
t.ruby_opts << '-w'
|
7
8
|
t.test_files = FileList['test/*_test.rb']
|
8
9
|
end
|
9
10
|
|
11
|
+
task :test_rspec do
|
12
|
+
if !system('rspec', 'test/rspec_integration')
|
13
|
+
puts "RSpec tests failed"
|
14
|
+
exit 1
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
10
18
|
task :default => :test
|
data/flexmock.gemspec
CHANGED
@@ -18,6 +18,7 @@ spec = Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.add_development_dependency 'minitest'
|
20
20
|
s.add_development_dependency 'rake'
|
21
|
+
s.add_development_dependency 'simplecov', '>= 0.11.0'
|
21
22
|
s.add_development_dependency 'coveralls'
|
22
23
|
|
23
24
|
#### Which files are to be included in this gem? Everything! (Except CVS directories.)
|
data/lib/flexmock/core.rb
CHANGED
data/lib/flexmock/rspec.rb
CHANGED
@@ -22,10 +22,18 @@ class FlexMock
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def failure_message_for_should
|
25
|
+
failure_message
|
26
|
+
end
|
27
|
+
|
28
|
+
def failure_message
|
25
29
|
describe_spy_expectation(@spy, @method_name, @args, @options)
|
26
30
|
end
|
27
31
|
|
28
32
|
def failure_message_for_should_not
|
33
|
+
failure_message_when_negated
|
34
|
+
end
|
35
|
+
|
36
|
+
def failure_message_when_negated
|
29
37
|
describe_spy_negative_expectation(@spy, @method_name, @args, @options)
|
30
38
|
end
|
31
39
|
|
data/lib/flexmock/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -39,6 +39,20 @@ dependencies:
|
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: simplecov
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 0.11.0
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.11.0
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
57
|
name: coveralls
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|