Skip to content

Commit

Permalink
make sure it actually works
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Cavanaugh authored and Rich Cavanaugh committed Sep 19, 2009
1 parent df64dfa commit 082eefe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/general_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

before(:each) do
@project = Project.create(:name => "Rich", :notes => "this plugin's author")
@post = Post.create(:name => 'a name')
end

describe "with auto-detected revision class" do
Expand All @@ -17,6 +18,11 @@
it "should find the revisable class" do
PostRevision.revisable_class.should == Post
end

it "should use the revision class" do
@post.update_attribute(:name, 'another name')
@post.revisions(true).first.class.should == PostRevision
end
end

describe "with auto-generated revision class" do
Expand Down

0 comments on commit 082eefe

Please sign in to comment.