Skip to content

Commit

Permalink
Add a test to make sure any blank tags are rejected.
Browse files Browse the repository at this point in the history
  • Loading branch information
myobie committed May 14, 2009
1 parent e9fb9ff commit 9499d96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/is_taggable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@
p.tag_list
end

expect ["blank","topics","should be ignored"] do
p = Post.new
p.tag_list = "blank, topics, should be ignored, "
p.save!
p.tags.reload
p.tag_list
end

expect 2 do
p = Post.new :language_list => "english, french"
p.save!
Expand Down

0 comments on commit 9499d96

Please sign in to comment.