Skip to content

Commit

Permalink
[webui] Fix project helper test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Aug 20, 2015
1 parent 9cc765b commit e5dfcdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/test/unit/webui/project_helper_test.rb
Expand Up @@ -5,17 +5,17 @@ class Webui::ProjectHelperTest < ActiveSupport::TestCase

def test_patchinfo_rating_color
color = patchinfo_rating_color('important')
color.must_equal 'red'
assert_equal 'red', color
end

def test_patchinfo_category_color
color = patchinfo_category_color('security')
color.must_equal 'maroon'
assert_equal 'maroon', color
end

def test_request_state_icon
map_request_state_to_flag('new').must_equal 'flag_green'
map_request_state_to_flag(nil).must_equal ''
assert_equal map_request_state_to_flag('new'), 'flag_green'
assert_equal map_request_state_to_flag(nil), ''
end

end

0 comments on commit e5dfcdc

Please sign in to comment.