Skip to content

Commit

Permalink
Removed AR-specific method calls. Bumped version.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed Mar 29, 2010
1 parent 47ddd98 commit 2909e2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/friendly_id/test.rb
Expand Up @@ -172,9 +172,10 @@ module Slugged

test "should remain findable by previous slugs" do
old_friendly_id = instance.friendly_id
instance.update_attributes :name => "#{old_friendly_id} updated"
instance.name = "#{old_friendly_id} updated"
instance.send(save_method)
assert_not_equal old_friendly_id, instance.friendly_id
assert_equal instance, klass.find(old_friendly_id)
assert_equal instance, klass.send(find_method, old_friendly_id)
end

test "should not create a slug when allow_nil is true and friendy_id text is blank" do
Expand Down
2 changes: 1 addition & 1 deletion lib/friendly_id/version.rb
Expand Up @@ -3,7 +3,7 @@ module Version
MAJOR = 3
MINOR = 0
TINY = 0
BUILD = "beta2"
BUILD = "beta3"
STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
end
end

0 comments on commit 2909e2b

Please sign in to comment.