flexmock 2.0.0.rc1 → 2.0.0

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: 4ade2170748d406102f5fb790cf747729faef19b
4
- data.tar.gz: af92a2e818928d228f710c3e05b9d76267603c76
3
+ metadata.gz: 03806072bb0d8d4aec632fc5afb44d54f8f9f6f9
4
+ data.tar.gz: b6d7c1a49f566b1cf6d38b51388f1196941098f0
5
5
  SHA512:
6
- metadata.gz: efd2242d6a87e8c35a7656f1612e00b8d653875ba10a9d47c4353ff8157b05ace064fa98ec78cafb35ec6d1f30ccf28167a192d06a6fd75556de6bdcce3429ab
7
- data.tar.gz: 7fdb2eafeca01e7f5a3e88234d75f7274846ce2b4d1d79c063990713cb4bff1c24b825ba408324377bf0de558541a25e2ebcc8616d0ea39f0b5e6d7f555c3f5e
6
+ metadata.gz: a82fdf26a842b8f00177c8d00987563c749818c17c6d75e465200e7472c5de0aeac8654023ef8d295ae603e9918f9ed9e4927b6236f6f79c92d9814482b1f059
7
+ data.tar.gz: 3a236755c5b7754acc77c86e7595dfa4bec2800390eebbe6c2c9f9d4591b32e345ceda0b124769d169c123745fc268d7327aa4d8aa4c722ae0fec90baf308b4b
data/CHANGES CHANGED
@@ -8,8 +8,12 @@
8
8
  * dropped support for pre-2.0 Rubies
9
9
  * added explicit minitest support. This makes the minitest integration much
10
10
  nicer to work with (in particular, the flexmock_teardown is now executed "just
11
- at the right place"), and fixes issues with minitest 5
11
+ at the right place"), and fixes issues with minitest 5. Just require
12
+ flexmock/minitest to get it.
12
13
  * partial mocks now supports prepended modules
14
+ * validation errors that happen when a method is called (i.e. unexpected
15
+ arguments, wrong call count) are reported with the backtrace of the call
16
+ instead of with the backtrace of the expectation definition.
13
17
 
14
18
  == Version 1.0.0
15
19
 
data/README.md CHANGED
@@ -2,20 +2,12 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/doudou/flexmock.svg?branch=master)](https://travis-ci.org/doudou/flexmock)
4
4
  [![Gem Version](https://badge.fury.io/rb/flexmock.svg)](http://badge.fury.io/rb/flexmock)
5
+ [![Coverage Status](https://coveralls.io/repos/doudou/flexmock/badge.svg?branch=master&service=github)](https://coveralls.io/github/doudou/flexmock?branch=master)
6
+ [![Documentation](http://b.repl.ca/v1/yard-docs-blue.png)](http://rubydoc.info/gems/flexmock/frames)
5
7
 
6
8
  FlexMock is a simple, but flexible, mock object library for Ruby unit
7
9
  testing.
8
10
 
9
- Version :: 2.0
10
-
11
- # Links
12
-
13
- * **Documents** -- http://rubydoc.info/gems/flemxock
14
- * **RubyGems** -- Install with: `gem install flexmock`
15
- * **Source** -- https://github.com/doudou/flexmock
16
- * **Bug Reports / Issue Tracking** -- https://github.com/doudou/flexmock/issues
17
- * **Continuous Integration** -- http://travis-ci.org/#!/doudou/flexmock
18
-
19
11
  ## Installation
20
12
 
21
13
  You can install FlexMock with the following command.
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 'coveralls'
21
22
 
22
23
  #### Which files are to be included in this gem? Everything! (Except CVS directories.)
23
24
 
@@ -62,8 +62,8 @@ class FlexMock
62
62
  # Adapter for adapting FlexMock to the Test::Unit framework.
63
63
  #
64
64
  class MinitestFrameworkAdapter
65
- if defined?(Minitest::Test)
66
- include Minitest::Assertions
65
+ if defined?(::Minitest)
66
+ include ::Minitest::Assertions
67
67
  else
68
68
  include MiniTest::Assertions
69
69
  end
@@ -319,14 +319,6 @@ class FlexMock
319
319
  end
320
320
  end
321
321
 
322
- # Restore the original singleton defintion for method_name that
323
- # was saved earlier.
324
- def restore_original_definition(method_name)
325
- proxy_module_eval do
326
- remove_method method_name
327
- end
328
- end
329
-
330
322
  # Have we been detached from the existing object?
331
323
  def detached?
332
324
  @obj.nil?
@@ -1,3 +1,3 @@
1
1
  class FlexMock
2
- VERSION = "2.0.0.rc1"
2
+ VERSION = "2.0.0"
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.0.rc1
4
+ version: 2.0.0
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-09-12 00:00:00.000000000 Z
12
+ date: 2015-09-17 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: coveralls
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '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'
42
56
  description: "\n FlexMock is a extremely simple mock object class compatible\n
43
57
  \ with the Minitest framework. Although the FlexMock's\n interface is simple,
44
58
  it is very flexible.\n "
@@ -152,9 +166,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
166
  version: '2.0'
153
167
  required_rubygems_version: !ruby/object:Gem::Requirement
154
168
  requirements:
155
- - - ">"
169
+ - - ">="
156
170
  - !ruby/object:Gem::Version
157
- version: 1.3.1
171
+ version: '0'
158
172
  requirements: []
159
173
  rubyforge_project:
160
174
  rubygems_version: 2.2.3
@@ -162,3 +176,4 @@ signing_key:
162
176
  specification_version: 4
163
177
  summary: Simple and Flexible Mock Objects for Testing
164
178
  test_files: []
179
+ has_rdoc: