shoulda-change_matchers 0.0.4 → 0.1.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 +5 -5
- data/lib/shoulda/change_matchers.rb +7 -2
- metadata +7 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 573e37cf3ae4d37ff03b4fb6c49baa69a63c993234548479d896dc589c0e144d
|
|
4
|
+
data.tar.gz: dcf2f0bbb6fa4c4eabf48ead6565e6f00f0fa24cf999e20c8a6da0e093031c08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71ac5f390d3330cb3c13292261bb14133560b531a976d7410c5a0591bd04cf561f4ce72715a88d06487fda63bfe40c56a08e0804e7ab6f0cab434d3a6430ec80
|
|
7
|
+
data.tar.gz: bb9a67b84967ea1bdda6f765240c4085b3cc989530d3945597d8f7c7b4f07f5d57dbe71492f9a62d3f910bfabdc5caf7f9351c772b68f7a814df75aee320e74e
|
|
@@ -98,7 +98,12 @@ module Shoulda
|
|
|
98
98
|
before = lambda { @_before_should_not_change = instance_eval(&block) }
|
|
99
99
|
should "not change #{description}", :before => before do
|
|
100
100
|
new_value = instance_eval(&block)
|
|
101
|
-
|
|
101
|
+
error_message = "#{description} changed"
|
|
102
|
+
if @_before_should_not_change.nil?
|
|
103
|
+
assert_nil new_value, error_message
|
|
104
|
+
else
|
|
105
|
+
assert_equal @_before_should_not_change, new_value, error_message
|
|
106
|
+
end
|
|
102
107
|
end
|
|
103
108
|
end
|
|
104
109
|
|
|
@@ -159,5 +164,5 @@ module Shoulda
|
|
|
159
164
|
end
|
|
160
165
|
end
|
|
161
166
|
|
|
162
|
-
klass = (defined?(MiniTest::Unit::TestCase) ? MiniTest::Unit::TestCase : Test::Unit::TestCase)
|
|
167
|
+
klass = (defined?(Minitest::Test) ? Minitest::Test : (defined?(MiniTest::Unit::TestCase) ? MiniTest::Unit::TestCase : Test::Unit::TestCase))
|
|
163
168
|
klass.send :extend, Shoulda::ChangeMatchers
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shoulda-change_matchers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Grosser
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -38,20 +38,6 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: wwtd
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ">="
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ">="
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
55
41
|
- !ruby/object:Gem::Dependency
|
|
56
42
|
name: shoulda
|
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,7 +52,7 @@ dependencies:
|
|
|
66
52
|
- - ">="
|
|
67
53
|
- !ruby/object:Gem::Version
|
|
68
54
|
version: '0'
|
|
69
|
-
description:
|
|
55
|
+
description:
|
|
70
56
|
email: michael@grosser.it
|
|
71
57
|
executables: []
|
|
72
58
|
extensions: []
|
|
@@ -77,7 +63,7 @@ homepage: https://github.com/grosser/shoulda-change_matchers
|
|
|
77
63
|
licenses:
|
|
78
64
|
- MIT
|
|
79
65
|
metadata: {}
|
|
80
|
-
post_install_message:
|
|
66
|
+
post_install_message:
|
|
81
67
|
rdoc_options: []
|
|
82
68
|
require_paths:
|
|
83
69
|
- lib
|
|
@@ -92,9 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
78
|
- !ruby/object:Gem::Version
|
|
93
79
|
version: '0'
|
|
94
80
|
requirements: []
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
signing_key:
|
|
81
|
+
rubygems_version: 3.4.10
|
|
82
|
+
signing_key:
|
|
98
83
|
specification_version: 4
|
|
99
84
|
summary: should_change / should_create / should_destroy matchers for shoulda 3 backported
|
|
100
85
|
from shoulda 2
|