Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
improved specs for finder method
Browse files Browse the repository at this point in the history
  • Loading branch information
nirnanaaa committed Jan 16, 2014
1 parent f809bf0 commit 1c3a757
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/gollum_rails/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,14 @@ class RailsModel < GollumRails::Page; end
expect(RailsModel.find('whoooohoo')).to be_nil
end

it "should initializes all with GollumRails::Page" do
expect(RailsModel.all.first).to be_kind_of GollumRails::Page
end

it "should have a gollum page after initializing with all" do
expect(RailsModel.all.first.gollum_page).not_to be_nil
end

it "tests the find method to return a gollum_rails:page if a page was found" do
expect(RailsModel.find('Goole')).to be_a GollumRails::Page
end
Expand Down

0 comments on commit 1c3a757

Please sign in to comment.