Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/earnold/friendly_id into …
Browse files Browse the repository at this point in the history
…history_fix
  • Loading branch information
norman committed Feb 27, 2012
2 parents 426e4f2 + 5049be6 commit 4e9c799
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/history_test.rb
Expand Up @@ -90,4 +90,14 @@ def model_class
end
end

test "should not create new slugs that match old slugs" do
transaction do
first_record = model_class.create! :name => "foo"
first_record.name = "bar"
first_record.save!
second_record = model_class.create! :name => "foo"
assert second_record.slug != "foo"
end
end

end

0 comments on commit 4e9c799

Please sign in to comment.