Sha256: f7c8eb6fe73390cc62e47c02b165c3a6fe67a4849f80a0a027ec9c06f9087cbc
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
# encoding: UTF-8 require 'test_helper' module Smurfville class StyleguideHelperTest < ActionView::TestCase test 'foreground_color' do # dark colors assert_equal "white", foreground_color("#012123") assert_equal "white", foreground_color("#000") # bright colors assert_equal "black", foreground_color("#efefef") assert_equal "black", foreground_color("white") assert_equal "black", foreground_color("red") # non-colors # => black = default assert_equal "black", foreground_color("schmuddelgelb") assert_equal "black", foreground_color(nil) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smurfville-0.1.1 | test/unit/helpers/smurf/styleguide_helper_test.rb |
smurfville-0.1.0 | test/unit/helpers/smurf/styleguide_helper_test.rb |