spec_cat 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04e83ac3e75c89fc69549058557706a0bbb2a2bc
4
- data.tar.gz: ec408995fdd89b1cf3a66a58cbf0e5f409f345d4
3
+ metadata.gz: 5d7e484cefe260a6265027a0eae94fbe7e26c73e
4
+ data.tar.gz: 5d60a5bdd9e7338af7c6e7bd7802e44ac3a0afbb
5
5
  SHA512:
6
- metadata.gz: bc63fa25af06f5143a036a6320244d0747c05d0ca14ee23512bf947cf4b067c30dd0eb7de949491099e4f3f3a1c5f68267af3b1f202f6a3f4c195e2128178875
7
- data.tar.gz: 060a2010c929c34020b246c211b7a2bded606bd8b4aa14d385f70480a745a6b4fdb6a503c3daf4c78a2513b1fb0f29bd74a2714f9670eb2f30e90fcfd0c66738
6
+ metadata.gz: 586baf782a2ba58134c2172463873fcdd4dba6d2672e1007105462ac111c71a02152355cc8b4efc393edc4b97de0db9fa1ca9ae824519ac1307ed0c1dbd5b1cf
7
+ data.tar.gz: 2b9f5852f336503be41c82a7811bd2f64cf4f7b7081315636bd7ef7285b7034b28a68a65805e63c9177d4fbe722b7b987cd196b3816c2f2b8b181ac999bf7c45
data/README.md CHANGED
@@ -6,10 +6,16 @@
6
6
 
7
7
  # schrodingersbox/spec_cat
8
8
 
9
- This gem contains trivial matchers to make RSpecs a bit more effective and annoying.
9
+ This gem contains trivial matchers to make RSpecs a bit more effective and less annoying.
10
10
 
11
11
  * eql_file
12
12
  * have_a_spec
13
+ * include_module
14
+
15
+ It also provides rake commands
16
+
17
+ * rake spec_cat:accept
18
+ * spec_cat:coverage
13
19
 
14
20
  NOTE: This gem does not depend on Rails. All paths are relative to cwd, which
15
21
  may be Rails.root or anywhere else.
@@ -18,7 +24,7 @@ This gem contains trivial matchers to make RSpecs a bit more effective and annoy
18
24
 
19
25
  Add this to your gemfile...
20
26
 
21
- gem 'spec_cat', :git => 'https://github.com/schrodingersbox/spec_cat.git'
27
+ gem 'spec_cat'
22
28
 
23
29
  ## Matchers
24
30
 
@@ -29,7 +35,7 @@ are different.
29
35
 
30
36
  It also writes a .tmp file to replace the old ground truth if it's gone stale.
31
37
 
32
- e.g. #foo produces a gnarly string too nasty to copy and paste into code.
38
+ e.g. #foo produces a gnarly string too nasty to copy and paste into spec code.
33
39
 
34
40
  foo.should eql_file( 'spec/data/foo.json' )
35
41
 
@@ -82,7 +88,9 @@ specs pass.
82
88
  * [RSpec](https://github.com/rspec/rspec)
83
89
  * [Testing Rake Tasks with RSpec](http://www.philsergi.com/2009/02/testing-rake-tasks-with-rspec.html)
84
90
  * [Nathan Humbert's Blog: Rails 3: Loading rake tasks from a gem](http://blog.nathanhumbert.com/2010/02/rails-3-loading-rake-tasks-from-gem.html)
91
+ * [Add Achievement Badges to Your Gem README](http://elgalu.github.io/2013/add-achievement-badges-to-your-gem-readme/)
85
92
  * [Publishing your gem](http://guides.rubygems.org/publishing/)
93
+ * [Better Specs](http://betterspecs.org)
86
94
 
87
95
  ## TODO
88
96
 
@@ -12,11 +12,13 @@ RSpec::Matchers.define :eql_file do |expected_path|
12
12
  end
13
13
 
14
14
  failure_message_for_should do |actual|
15
- "expected that #{actual} would match the contents of #{expected}"
15
+ diff = `diff #{expected_path}.tmp #{expected_path}`
16
+ "expected that \"#{actual}\" would match the contents of #{expected}\n\n#{diff}\n\n"
16
17
  end
17
18
 
18
19
  failure_message_for_should_not do |actual|
19
- "expected that #{actual} would not match the contents of #{expected}"
20
+ diff = `diff #{expected_path}.tmp #{expected_path}`
21
+ "expected that \"#{actual}\" would not match the contents of #{expected}\n\n#{diff}\n\n"
20
22
  end
21
23
 
22
24
  match do |actual|
@@ -1,3 +1,3 @@
1
1
  module SpecCat
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Humphrey
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.2.0
129
+ rubygems_version: 2.2.2
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: RSpec support library