simply_paginate 0.0.5 → 0.0.6
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/Gemfile.lock +1 -1
- data/lib/simply_paginate/page.rb +2 -0
- data/lib/simply_paginate/version.rb +1 -1
- data/spec/page_spec.rb +10 -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: 4389214a447d6c690fbbdf4c8e1edcf597830ba8
|
4
|
+
data.tar.gz: e9f6a27ddcc799b774f69fa97e134a007b62ad52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42d9ac2f3bc1072b718c4ec1da9c91290f9aa0e16fb5f237cac0d70db8a4168f9bdb66f7606ac50266967d89b775e99a40304f917374bf784cab41df4de5de93
|
7
|
+
data.tar.gz: e143d914456f578ee469019054e5d8bbb78b207002274f152d8f0a34b4ee130dbe87871cae98d65b5937ce9515bcaa6501742085b76a30f50ebf7a870b27a364
|
data/Gemfile.lock
CHANGED
data/lib/simply_paginate/page.rb
CHANGED
data/spec/page_spec.rb
CHANGED
@@ -34,6 +34,11 @@ describe Page do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
context "when they are different" do
|
37
|
+
context "and other is not a page" do
|
38
|
+
let(:other_page) { "definitely not a page" }
|
39
|
+
specify { expect(subject).to eq(false) }
|
40
|
+
end
|
41
|
+
|
37
42
|
context "and the second has different values" do
|
38
43
|
before(:each) do
|
39
44
|
allow(other_page).to receive(:index).and_return(1)
|
@@ -80,6 +85,11 @@ describe Page do
|
|
80
85
|
end
|
81
86
|
|
82
87
|
context "when they are different" do
|
88
|
+
context "and other is not a page" do
|
89
|
+
let(:other_page) { "definitely not a page" }
|
90
|
+
specify { expect(subject).to eq(false) }
|
91
|
+
end
|
92
|
+
|
83
93
|
context "because the second has different values" do
|
84
94
|
before(:each) do
|
85
95
|
allow(other_page).to receive(:index).and_return(1)
|