scoped_id 0.0.1 → 0.0.2
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 +1 -1
- data/lib/scoped_id/concern.rb +1 -1
- data/lib/scoped_id/version.rb +1 -1
- data/spec/scoped_id/concern_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 341ade7aa5eaece8112291f01cf84cb7ffeb3aa6
|
4
|
+
data.tar.gz: 5cdf5413543f21074f48ef2dc17b2ae8f9c96cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25daa76534e3b5b470ed1582d6abf2e900123bdbe53b877d44d8c71fe375ad10fdc04947dc1d63bde3cf6a000820a56fc4c41b4ec2f11c9a46316b881e520153
|
7
|
+
data.tar.gz: ce54f624893cb92f880ebc318415943f7bc8b846d74b5e106d0a14bde002cbb9e11dd59f03aee6d5f04b52cb13ec25dd71f22e8870bca697e1a919d1e8c5ed3f
|
data/README.md
CHANGED
data/lib/scoped_id/concern.rb
CHANGED
data/lib/scoped_id/version.rb
CHANGED
@@ -59,6 +59,11 @@ describe ScopedId do
|
|
59
59
|
model.valid?.should be_true
|
60
60
|
end
|
61
61
|
|
62
|
+
it "is valid if a record exists with a nil scoped id" do
|
63
|
+
BaseModel.create # owner_scoped_id == nil
|
64
|
+
Model.new.valid?.should be_true
|
65
|
+
end
|
66
|
+
|
62
67
|
it "raises an exception if scope is not specified" do
|
63
68
|
expect{
|
64
69
|
Class.new(BaseModel) do
|