strip_attributes 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/strip_attributes/matchers.rb +5 -4
- data/lib/strip_attributes/version.rb +1 -1
- data/test/test_helper.rb +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e4b323cd614f1fe461e795f9639291ac5eda4db
|
4
|
+
data.tar.gz: 41546e168fb2fdf9220c1048b86cf2ddeca972b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a632fd515e427df871254d544f625facdc50aedb24919499f261bea2d39a82401fce27410062186da237586e6962461197babb7988c0206917cb3a3c020423d8
|
7
|
+
data.tar.gz: 127b3edc8af1a095691071279ba760522b5e64dcff6d3793d575e77b7fb7508392e15e1421fecc1c780700d17d8bfba0785194763c286d34bf1e97072d44246e
|
@@ -33,15 +33,16 @@ module StripAttributes
|
|
33
33
|
self
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def failure_message # RSpec 3.x
|
37
37
|
"Expected whitespace to be #{expectation} from ##{@attribute}, but it was not"
|
38
38
|
end
|
39
|
-
alias_method :failure_message,
|
39
|
+
alias_method :failure_message_for_should, :failure_message # RSpec 1.2, 2.x, and minitest-matchers
|
40
40
|
|
41
|
-
def
|
41
|
+
def failure_message_when_negated # RSpec 3.x
|
42
42
|
"Expected whitespace to remain on ##{@attribute}, but it was #{expectation}"
|
43
43
|
end
|
44
|
-
alias_method :
|
44
|
+
alias_method :failure_message_for_should_not, :failure_message_when_negated # RSpec 1.2, 2.x, and minitest-matchers
|
45
|
+
alias_method :negative_failure_message, :failure_message_when_negated # RSpec 1.1
|
45
46
|
|
46
47
|
def description
|
47
48
|
"#{expectation(false)} whitespace from ##{@attribute}"
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strip_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan McGeary
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.2.
|
127
|
+
rubygems_version: 2.2.2
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Whitespace cleanup for ActiveModel attributes
|