Skip to content

Commit

Permalink
Patch to join tags by delimiter instead of ', '
Browse files Browse the repository at this point in the history
Signed-off-by: James Golick <james@giraffesoft.ca>
  • Loading branch information
rrouse authored and jamesgolick committed Aug 19, 2009
1 parent 9499d96 commit 2a7a01d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/is_taggable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(list)
end

def to_s
join(', ')
join(@@delimiter)
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/is_taggable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
p.language_list
end

expect "english, french" do
expect "english,french" do
p = Post.new :language_list => "english, french"
p.language_list.to_s
end
Expand Down

0 comments on commit 2a7a01d

Please sign in to comment.