test/is_sluggable_test.rb in pseudocephalopod-0.2.5 vs test/is_sluggable_test.rb in pseudocephalopod-0.3.0

- old
+ new

@@ -70,9 +70,17 @@ assert !User.find_using_slug("ralph").has_better_slug? assert User.find_using_slug("bob").has_better_slug? assert User.find_using_slug(user.id).has_better_slug? end + should 'not keep a users slug when updating themselves' do + user = User.create :name => "bob is awesome" + assert_equal "bob-is-awesome", user.to_param + assert !user.new_record? + user.update_attributes! :name => "BOB-is-AWESOME" + assert_equal "bob-is-awesome", user.to_param + end + end context 'with slug syncing disabled' do setup { setup_slugs! :sync => false } \ No newline at end of file