Skip to content

Commit

Permalink
Changed gemfile to depend on xapor > 0.1.5 and removed the note from …
Browse files Browse the repository at this point in the history
…the readme that is now redundant due to updates
  • Loading branch information
workmad3 committed May 19, 2010
1 parent fc7e2ad commit f8033b4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 29 deletions.
26 changes: 13 additions & 13 deletions .idea/iDoc.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -9,7 +9,7 @@ gem 'authlogic', "2.1.3"
gem 'friendly_id', "3.0.2"
gem 'sanitize', "1.2.0"
gem 'cancan', "1.0.2"
gem 'xapor', ">= 0.1.0"
gem 'xapor', ">= 0.1.5"
gem 'will_paginate', "2.3.12"
gem 'mongrel', "1.1.6"

Expand All @@ -18,6 +18,7 @@ group :test do
gem 'rspec-rails', '1.3.2'
gem 'spork', '0.8.2'
gem 'email_spec', "0.6.2"
gem 'shoulda'
end

group :cucumber do
Expand Down
4 changes: 0 additions & 4 deletions README
@@ -1,4 +0,0 @@
== Notes on deployment ==

With the current in-memory index for xapian and the bundler setup, only the conservative spawn method works
with passenger.
4 changes: 2 additions & 2 deletions spec/controllers/comments/delete_comment_spec.rb
Expand Up @@ -3,8 +3,8 @@
describe CommentsController, "Deleting a comment" do
before(:each) do
@comment = mock_model(Comment, :destroy => true)
@comments = mock_model(Array, :find => @comment)
@doc_page = mock_model(DocumentationPage, :comments => @comments)
@doc_page = mock_model(DocumentationPage)
@doc_page.stub_chain(:comments, :find).and_return(@comment)
DocumentationPage.stub!(:find).and_return(@doc_page)
end

Expand Down
11 changes: 2 additions & 9 deletions spec/models/documentation_page_spec.rb
@@ -1,15 +1,8 @@
require 'spec_helper'

describe DocumentationPage do
it "should not be valid without a title" do
page = DocumentationPage.new(:content => "Some test content")
page.valid?.should be_false
end

it "should not be valid without content" do
page = DocumentationPage.new(:title => "Testing title")
page.valid?.should be_false
end
it {should validate_presence_of(:title)}
it {should validate_presence_of(:content)}

it "should set the position to the lowest value if no position is provided" do
DocumentationPage.create(:title => "Test title", :content => "Some content", :position => 1)
Expand Down

0 comments on commit f8033b4

Please sign in to comment.