Permalink
Browse files

make sure it actually works

  • Loading branch information...
1 parent df64dfa commit 082eefe280ad513cdd7b3fc994ae2158457a5652 Rich Cavanaugh committed Sep 19, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/general_spec.rb
View
@@ -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
@@ -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

0 comments on commit 082eefe

Please sign in to comment.