gollum_rails 1.4.12 → 1.4.13
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/HISTORY.md +3 -0
- data/gollum_rails.gemspec +1 -1
- data/lib/gollum_rails.rb +1 -1
- data/lib/gollum_rails/store.rb +1 -1
- data/spec/gollum_rails/page_spec.rb +8 -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: 5f67ec69d7746afcea87ebf4ae4cc57625b5735c
|
4
|
+
data.tar.gz: c9bf925679161f987317347e05fafa8caf5fd477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 151b9810a740a25fea35423bde68cc862b39c27094479ed8329fcac3b7c4644ea9f485ef9cb311460a3e17a25378bcbd49ba414ce93e1da271b66fcd6c40d5b5
|
7
|
+
data.tar.gz: 6d4e9b50bcd96ee9c62372ba1f12422b3d3fa7612d33eed097d7c93035f0bc77bd3bc1ec57780c49da0225a9a3ef46d9cfcb82524464f9cabc85e8c68b6b61d8
|
data/Gemfile.lock
CHANGED
data/HISTORY.md
CHANGED
data/gollum_rails.gemspec
CHANGED
data/lib/gollum_rails.rb
CHANGED
data/lib/gollum_rails/store.rb
CHANGED
@@ -21,7 +21,7 @@ module GollumRails
|
|
21
21
|
# Gets the wiki instance
|
22
22
|
def wiki
|
23
23
|
raise InitializationError, "Wiki path was not initialized!" if Setup.wiki_path.nil?
|
24
|
-
@wiki
|
24
|
+
@wiki = Gollum::Wiki.new(Setup.wiki_path, Setup.wiki_options )
|
25
25
|
end
|
26
26
|
end
|
27
27
|
# Gets the pages format
|
@@ -195,6 +195,14 @@ describe "Gollum Page" do
|
|
195
195
|
expect(RailsModel.find('whoooohoo')).to be_nil
|
196
196
|
end
|
197
197
|
|
198
|
+
it "should initializes all with GollumRails::Page" do
|
199
|
+
expect(RailsModel.all.first).to be_kind_of GollumRails::Page
|
200
|
+
end
|
201
|
+
|
202
|
+
it "should have a gollum page after initializing with all" do
|
203
|
+
expect(RailsModel.all.first.gollum_page).not_to be_nil
|
204
|
+
end
|
205
|
+
|
198
206
|
it "tests the find method to return a gollum_rails:page if a page was found" do
|
199
207
|
expect(RailsModel.find('Goole')).to be_a GollumRails::Page
|
200
208
|
end
|