minitest-matchers 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 04328c2aed579ded2c63a31fc655f9fc9041afba
4
- data.tar.gz: be3a91572aa420491f46d78c2aae43902f9fcab4
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NzQ3OTBlMmQ4MWUyMmY1MDY2NDY1N2VhYWMzNzlkNDAzNjc0OWYwNg==
5
+ data.tar.gz: !binary |-
6
+ MDliOTI1MDRmMzhiNWYzNGM0OTI3Mjk3MWNhNDIyYjM3NmIwZmVmYg==
5
7
  SHA512:
6
- metadata.gz: 095af4786ee8fccee061ee04065d4583e12bcc888d86eef590bcb56617695726bdefc6cb3326f9b8963b1095b0cf7cd40828a63db2c5c966babe32f22e83d24b
7
- data.tar.gz: f76d87843da18bc853e6080ea0561167b87beaf4c5cfd96466c956281ee70c09ebb6ccf701adcc5fe3f4a758650e4989234a28e1ea2bdb929e0aa9080a26cc1b
8
+ metadata.gz: !binary |-
9
+ YzFmOWEyMGZjMTIwM2MzMDU3MGJjYmFkMTgyMGNlNzY3YTRmN2FjOGFmM2Jj
10
+ N2IwNTc4NzJiYzkyOTM4M2Y0ODI0YzQ1ZGQ3M2JiY2U0NzY3ZGZjNzYyNzdj
11
+ YTBlZTYzMjdiOTIxZDNlZWYwZjgwNjBiNzRlY2JhODM1ODU4Nzc=
12
+ data.tar.gz: !binary |-
13
+ MjNhNTExM2NlMzUxMGU5M2QzYWJiYTNlYjZhZDM4ZGY0NTkwZTA2MDIxMGE4
14
+ ODdmYmU4ZmRiYzM5YzkwMzYyYjMxMTJiMDAxZWQ5YzQ3M2FhZjllNDFiYzhh
15
+ ZGY3MGFkMmJkNzFiNDVkNDVlMWMwODBiM2YxYjE5MzlmYWJhNTk=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minitest-matchers (1.4.0)
4
+ minitest-matchers (1.4.1)
5
5
  minitest (~> 5.0)
6
6
 
7
7
  GEM
@@ -1,5 +1,11 @@
1
1
  === HEAD
2
2
 
3
+ === 1.4.1 / 2013-10-07
4
+
5
+ * 1 bug fix:
6
+
7
+ * require 'minitest/matchers' causes uninitialized constant Minitest::Matchers error [thanks @fabiolnm]
8
+
3
9
  === 1.4.0 / 2013-06-30
4
10
 
5
11
  * 1 major enhancements
data/README.md CHANGED
@@ -26,7 +26,7 @@ For use with Rails check out (ValidAttribute + Capybara):
26
26
 
27
27
  * Enables you to use existing matcher classes from projects like
28
28
  valid\_attribute and capybara
29
- * Can be used both in MiniTest::Unit::TestCase & MiniTest::Spec
29
+ * Can be used both in Minitest::Test & Minitest::Spec
30
30
 
31
31
  ## Synopsis
32
32
 
@@ -46,7 +46,7 @@ end
46
46
 
47
47
  # Using minitest/unit
48
48
 
49
- class PostTest < MiniTest::Unit::TestCase
49
+ class PostTest < Minitest::Test
50
50
  include ValidAttribute::Method
51
51
 
52
52
  def test_validations
@@ -93,8 +93,8 @@ You can also register matcher so that it works similar to built-in
93
93
  assertions and expectations. Note subject must be the first argument in assertion.
94
94
 
95
95
  ```ruby
96
- MiniTest::Unit::TestCase.register_matcher HaveContent, :have_content
97
- MiniTest::Unit::TestCase.register_matcher :have_selector, :have_selector
96
+ Minitest::Test.register_matcher HaveContent, :have_content
97
+ Minitest::Test.register_matcher :have_selector, :have_selector
98
98
 
99
99
  assert_have_content page, "Hello"
100
100
  assert_have_selector page, :xpath, "//table/tr"
@@ -105,7 +105,7 @@ page.must_have_selector :xpath, "//table/tr"
105
105
 
106
106
  ## Requirements
107
107
 
108
- * `minitest >= 2.7.0`
108
+ * `minitest ~> 5.0`
109
109
 
110
110
  ## Install
111
111
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -144,9 +144,9 @@ class Minitest::Test
144
144
  # # ...
145
145
  # end
146
146
  #
147
- # Minitest::Unit::TestCase.register_matcher HaveContent, :have_content
147
+ # Minitest::Test.register_matcher HaveContent, :have_content
148
148
  #
149
- # class MyTest < Test::Unit::TestCase
149
+ # class MyTest < Minitest::Test
150
150
  # def test_index
151
151
  # visit "/"
152
152
  # assert_have_content page, "Hello"
@@ -196,7 +196,3 @@ class Minitest::Test
196
196
  Object.infect_an_assertion :"refute_#{name}", :"wont_#{exp_name}", true
197
197
  end
198
198
  end
199
-
200
- class Minitest::Spec # :nodoc:
201
- include Minitest::Matchers
202
- end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Mach
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-30 00:00:00.000000000 Z
12
+ date: 2013-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -29,14 +29,14 @@ dependencies:
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ! '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  description: Adds support for RSpec-style matchers
@@ -72,17 +72,17 @@ require_paths:
72
72
  - lib
73
73
  required_ruby_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project: minitest-matchers
85
- rubygems_version: 2.0.3
85
+ rubygems_version: 2.1.5
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Adds support for RSpec-style matchers