purgatory 2.11.0 → 2.12.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 +8 -8
- data/VERSION +1 -1
- data/lib/purgatory/purgatory.rb +1 -0
- data/purgatory.gemspec +2 -2
- data/spec/purgatory_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NjFjNzJjZmMxNTdmMTRiMDAyMTQ4MjZhNGI0ZmU2NTc1ODFhNjIyMA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ODY3ZTc3Y2VmMmI0ZGNlMzdjYzlkNjhiNGY5YTM2MmFiNDEzN2IxZA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDMxMjJhMDZiYzA5N2JlN2FiOTBjZDBmN2I2YTA5ODY4YjU5NWIzM2FjM2Q2
|
|
10
|
+
YWFjMjZjNGZkMGQwNjE2ODQ1ZWVmOTRiY2MzOWZlN2NhNTk5NTRkZGFmMjg2
|
|
11
|
+
NGY3NTZjOWM3M2M1YzI0YzcxZDE5NzQ5MzQ0NTk3Y2IwY2E3YjQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NGM5NGIxYzc4MTI4YTNlNWY4YWZlYzU5NWU4ZmU0YzI3MjQyNGE4NGM1NWE5
|
|
14
|
+
NzIzYWZmYTk4MmJjMTI1ZjY2MTk5NGI5NmY4YWU4NDlhOGU5OGJlM2Q5ZWM5
|
|
15
|
+
ZjNiMWFiODY4MjA4OTMxNzJhY2QxZTdhMjBjOThhMDJhNTU2MTg=
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.12.0
|
data/lib/purgatory/purgatory.rb
CHANGED
data/purgatory.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: purgatory 2.
|
|
5
|
+
# stub: purgatory 2.12.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "purgatory"
|
|
9
|
-
s.version = "2.
|
|
9
|
+
s.version = "2.12.0"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.authors = ["Elan Dubrofsky"]
|
data/spec/purgatory_spec.rb
CHANGED
|
@@ -277,6 +277,12 @@ describe Purgatory do
|
|
|
277
277
|
Purgatory.approved.count.should == 1
|
|
278
278
|
Purgatory.approved.first.should == @purgatory
|
|
279
279
|
end
|
|
280
|
+
|
|
281
|
+
it "should store the id of the newly created object so the purgatory can be accessed through the object" do
|
|
282
|
+
widget = Widget.first
|
|
283
|
+
widget.purgatories.count.should == 1
|
|
284
|
+
widget.purgatories.first.should == @purgatory
|
|
285
|
+
end
|
|
280
286
|
|
|
281
287
|
it "should fail if you try to approve again" do
|
|
282
288
|
@purgatory.approve!(user2).should be_false
|