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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9387eb1544230a8a90aa555763f306093cd6e71c
4
- data.tar.gz: 7f0a5a0b13e16ab4bf8fe73332df1b6e4096a3a3
3
+ metadata.gz: 158433b510fe021438b3e2c88a82b1ffd0efcb36
4
+ data.tar.gz: 65961b49054d7ff956bf6807d007aadb0b1105a9
5
5
  SHA512:
6
- metadata.gz: 0701e4a445c1e9a10134727d655faf532d2f0a925b06ea04afa565f81af51bba095c3b61fca54b09917f7e3cf2aa7d7de327031a98fc1b9afc094c9e57976978
7
- data.tar.gz: 1c646119d8530ee4b3c12514f61b6f92530c4c0ad8f5374abdf43414f89f936116a832a4df598f0d281e31a519549edd9ea5aa779a9247aa2704a0dc76e0e208
6
+ metadata.gz: ed5f37949186a46a14c4391ee4987f9b314acf1d876979a538704957526d24f7e1f6a67f00fd27a31d668b1b5086537a8a805269baae81d799059a3e041f94b3
7
+ data.tar.gz: 0c92dadcc4e1bea6951214e0e43704d6e677201ed53ea370eea3ad4ddfd9b60b6ec28a56264f98b59b73b216a7afdb830ce24376a1aa6836be78e12e38c5d296
@@ -1,5 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- - 2.1.6
5
- - 2.2.2
4
+ - 2.1.8
5
+ - 2.2.4
6
+ - 2.3.0
7
+
8
+ script:
9
+ - rake test
10
+ - rake test_rspec
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ group :test do
6
+ gem 'rspec', '>= 2.11'
7
+ end
8
+
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 0.9.0 of RSpec, you
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
@@ -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.)
@@ -57,6 +57,7 @@ class FlexMock
57
57
  # container for this mock.
58
58
  def initialize(name="unknown", container=nil)
59
59
  @flexmock_name = name
60
+ @flexmock_closed = false
60
61
  @expectations = Hash.new
61
62
  @ignore_missing = false
62
63
  @verified = false
@@ -21,7 +21,7 @@ class FlexMock
21
21
  end
22
22
 
23
23
  class RSpecFrameworkAdapter
24
- def make_assertion(msg, &block)
24
+ def make_assertion(msg, backtrace = caller, &block)
25
25
  msg = msg.call if msg.is_a?(Proc)
26
26
  SpecModule::Expectations.fail_with(msg) unless yield
27
27
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class FlexMock
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
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
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: 2015-12-18 00:00:00.000000000 Z
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