Skip to content

Commit

Permalink
get wiki specs passing again
Browse files Browse the repository at this point in the history
  • Loading branch information
mockdeep committed Jan 25, 2015
1 parent 7f55a66 commit 6bc08fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/wiki.rb
Expand Up @@ -8,7 +8,7 @@ class Wiki < ActiveRecord::Base

acts_as_watchable

validates_presence_of :start_page, :project
validates_presence_of :start_page
validates_format_of :start_page, :with => /^[^,\.\/\?\;\|\:]*$/

def visible?(user=User.current) # spec_me cover_me heckle_me
Expand Down
4 changes: 2 additions & 2 deletions spec/controllers/wiki_controller/index_spec.rb
Expand Up @@ -4,8 +4,8 @@

let(:user) { Factory.create(:user) }
let(:project) { Factory.create(:project) }
let(:wiki) { project.wiki }
let(:wiki_page) { wiki.pages.create!(:title => 'wat') }
let(:wiki) { project.reload.wiki }
let(:wiki_page) { Factory.create(:wiki_page, :wiki => wiki, :title => 'wat') }
let!(:wiki_content) do
WikiContent.create!(:text => 'some text', :page => wiki_page)
end
Expand Down

0 comments on commit 6bc08fe

Please sign in to comment.