Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
model_helper_tests.rb: Add test for bug 1100508
Browse files Browse the repository at this point in the history
  • Loading branch information
Miciah committed May 30, 2014
1 parent 0cd99f8 commit df525b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions console/test/unit/helpers/model_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def test_scale_to_options
def test_in_groups_by_tag
t1 = Tagged.new([:ruby, :php])
t2 = Tagged.new([:ruby])
t3 = Tagged.new([:ruby, :php, :java])

groups, others = in_groups_by_tag([t1], [:ruby])
assert_equal [t1], others
Expand All @@ -61,5 +62,9 @@ def test_in_groups_by_tag
groups, others = in_groups_by_tag([t1, t2], [:ruby])
assert_equal [[:ruby, [t1, t2]]], groups
assert others.empty?

groups, others = in_groups_by_tag([t1, t3], [:java, :php, :ruby])
assert_equal [[:php, [t1, t3]]], groups
assert others.empty?
end
end

0 comments on commit df525b4

Please sign in to comment.