Sha256: 9acc33c35edc8ebca632b479c7123412ab537c239a116abe119c27cb2bf75eb1
Contents?: true
Size: 460 Bytes
Versions: 3
Compression:
Stored size: 460 Bytes
Contents
require 'spec_helper' require 'rubyXL/convenience_methods/color' describe RubyXL::Color do describe '.validate_color' do it 'should return true if a valid hex color without a # is passed' do expect(RubyXL::Color.validate_color('0fbCAd')).to eq(true) end it 'should cause an error if an invalid hex color code or one with a # is passed' do expect { RubyXL::Color.validate_color('#G') }.to raise_error(RuntimeError) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubyXL-3.4.27 | spec/lib/color_spec.rb |
rubyXL-3.4.26 | spec/lib/color_spec.rb |
rubyXL-3.4.25 | spec/lib/color_spec.rb |