Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No longer throws errors when creating the first project.

  • Loading branch information...
commit d50aa0c2f7b9c42a15cb8aac2bc1cdaec4bd0d4a 1 parent 33d4ff3
@notahat authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  app/models/project.rb
  2. +1 −1  spec/models/page_spec.rb
View
1  app/models/project.rb
@@ -24,6 +24,7 @@ def pages
def save
if new_record?
+ Dir.mkdir("#{RAILS_ROOT}/db/projects") unless File.exist?("#{RAILS_ROOT}/db/projects")
Dir.mkdir(self.class.projects_root) unless File.exist?(self.class.projects_root)
Dir.mkdir(path) unless File.exist?(path)
@git = Git.init(path)
View
2  spec/models/page_spec.rb
@@ -25,6 +25,6 @@
end
def create_test_page
- @page = @project.pages.create(:name => "test_page", :body => "just a test", :commit_message => "added test_page")
+ @page = @project.pages.create(:name => "test_page", :body => "just a test", :change_message => "added test_page")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.