spec_cat 1.0.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/spec_cat/matchers/eql_file.rb +2 -2
- data/lib/spec_cat/matchers/have_a_spec.rb +2 -2
- data/lib/spec_cat/matchers/include_module.rb +2 -2
- data/lib/spec_cat/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f7c83a78ab993a6dbee351aaf99dac7bdc6a4b8
|
4
|
+
data.tar.gz: a23fcb22062c24aea9a4100f5431cf7d37247dcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
15
|
+
failure_message do |path|
|
16
16
|
"expected #{path} to have spec at #{spec_file_for( path )}"
|
17
17
|
end
|
18
18
|
|
19
|
-
|
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
|
-
|
11
|
+
failure_message do |subject|
|
12
12
|
"expected that #{subject.class} would include #{expected}"
|
13
13
|
end
|
14
14
|
|
15
|
-
|
15
|
+
failure_message_when_negated do |subject|
|
16
16
|
"expected that #{subject.class} would not include #{expected}"
|
17
17
|
end
|
18
18
|
|
data/lib/spec_cat/version.rb
CHANGED
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:
|
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: '
|
19
|
+
version: '3.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
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: '
|
29
|
+
version: '3.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 3.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|