spec_cat 1.0.3 → 3.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: 5d7e484cefe260a6265027a0eae94fbe7e26c73e
4
- data.tar.gz: 5d60a5bdd9e7338af7c6e7bd7802e44ac3a0afbb
3
+ metadata.gz: 1f7c83a78ab993a6dbee351aaf99dac7bdc6a4b8
4
+ data.tar.gz: a23fcb22062c24aea9a4100f5431cf7d37247dcf
5
5
  SHA512:
6
- metadata.gz: 586baf782a2ba58134c2172463873fcdd4dba6d2672e1007105462ac111c71a02152355cc8b4efc393edc4b97de0db9fa1ca9ae824519ac1307ed0c1dbd5b1cf
7
- data.tar.gz: 2b9f5852f336503be41c82a7811bd2f64cf4f7b7081315636bd7ef7285b7034b28a68a65805e63c9177d4fbe722b7b987cd196b3816c2f2b8b181ac999bf7c45
6
+ metadata.gz: f99b05284926c1a2d041312436ab5a37f7f603fc850208af53b57012aacb8d299ed4fef8797fb505fb757b85605245a107a20cd148ce112c3f5d52116e6e7145
7
+ data.tar.gz: 7a4ee59dd9791ed039eccd73d6c9798dec41ac01660da65cec208e5f1817802aea99e79ea01d30c1b63d045e235914bb8de0b3387b593c4e98d3b5263c19e0c1
data/README.md CHANGED
@@ -92,6 +92,11 @@ specs pass.
92
92
  * [Publishing your gem](http://guides.rubygems.org/publishing/)
93
93
  * [Better Specs](http://betterspecs.org)
94
94
 
95
+ ## Version History
96
+
97
+ * 3.0.0 - RSpec 3 supported
98
+ * 1.0.3 - Last version with RSpec 2.x support
99
+
95
100
  ## TODO
96
101
 
97
102
  * Fix include_module - only get class if arg is not already a class
@@ -11,12 +11,12 @@ RSpec::Matchers.define :eql_file do |expected_path|
11
11
  "match the contents of #{expected}"
12
12
  end
13
13
 
14
- failure_message_for_should do |actual|
14
+ failure_message do |actual|
15
15
  diff = `diff #{expected_path}.tmp #{expected_path}`
16
16
  "expected that \"#{actual}\" would match the contents of #{expected}\n\n#{diff}\n\n"
17
17
  end
18
18
 
19
- failure_message_for_should_not do |actual|
19
+ failure_message_when_negated do |actual|
20
20
  diff = `diff #{expected_path}.tmp #{expected_path}`
21
21
  "expected that \"#{actual}\" would not match the contents of #{expected}\n\n#{diff}\n\n"
22
22
  end
@@ -12,11 +12,11 @@ RSpec::Matchers.define :have_a_spec do
12
12
  File.exists?( spec_file_for( path ) )
13
13
  end
14
14
 
15
- failure_message_for_should do |path|
15
+ failure_message do |path|
16
16
  "expected #{path} to have spec at #{spec_file_for( path )}"
17
17
  end
18
18
 
19
- failure_message_for_should_not do |path|
19
+ failure_message_when_negated do |path|
20
20
  "expected #{path} to not have spec at #{spec_file_for( path )}"
21
21
  end
22
22
 
@@ -8,11 +8,11 @@ RSpec::Matchers.define :include_module do |expected_module|
8
8
  "includes #{expected}"
9
9
  end
10
10
 
11
- failure_message_for_should do |subject|
11
+ failure_message do |subject|
12
12
  "expected that #{subject.class} would include #{expected}"
13
13
  end
14
14
 
15
- failure_message_for_should_not do |subject|
15
+ failure_message_when_negated do |subject|
16
16
  "expected that #{subject.class} would not include #{expected}"
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module SpecCat
2
- VERSION = '1.0.3'
2
+ VERSION = '3.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_cat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Humphrey
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.14'
19
+ version: '3.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.14.0
22
+ version: 3.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '2.14'
29
+ version: '3.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.14.0
32
+ version: 3.0.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails
35
35
  requirement: !ruby/object:Gem::Requirement