test/slug_test.rb in friendly_id-2.2.2 vs test/slug_test.rb in friendly_id-2.2.3

- old
+ new

@@ -10,14 +10,14 @@ Slug.delete_all Post.delete_all end should "indicate if it is the most recent slug" do - @post = Post.create!(:title => "test title", :content => "test content") - @post.title = "a new title" - @post.save! - assert @post.slugs.last.is_most_recent? - assert !@post.slugs.first.is_most_recent? + post = Post.create!(:title => "test title", :content => "test content") + post.title = "a new title" + post.save! + assert post.slugs.last.is_most_recent? + assert !post.slugs.first.is_most_recent? end end context "the Slug class" do