mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Add non-ffffff test for ThemeHelper#get_hex_color_from_theme_value
This commit is contained in:
parent
892b708c6f
commit
ec998686ff
1 changed files with 5 additions and 1 deletions
|
@ -4,9 +4,13 @@ require "rails_helper"
|
|||
|
||||
describe ThemeHelper, :type => :helper do
|
||||
describe "#get_hex_color_from_theme_value" do
|
||||
it "returns the proper hex value from the theme value" do
|
||||
it "returns the proper hex value from the decimal value for white" do
|
||||
expect(helper.get_hex_color_from_theme_value(16777215)).to eq("ffffff")
|
||||
end
|
||||
|
||||
it "returns the proper hex value from the decimal value for purple" do
|
||||
expect(helper.get_hex_color_from_theme_value(6174129)).to eq("5e35b1")
|
||||
end
|
||||
end
|
||||
|
||||
describe "#get_decimal_triplet_from_hex" do
|
||||
|
|
Loading…
Reference in a new issue