Sha256: bf0525adae32715045f5b4bbc38b0d7d8a73972a1d919c694d66cea2d8a7cb6d

Contents?: true

Size: 414 Bytes

Versions: 54

Compression:

Stored size: 414 Bytes

Contents

require 'rubygems'
require 'rubyXL'

describe RubyXL::Color do
  describe '.validate_color' do
    it 'should return true if a valid hex color without a # is passed' do
      RubyXL::Color.validate_color('0fbCAd').should == true
    end

    it 'should cause an error if an invalid hex color code or one with a # is passed' do
      lambda {RubyXL::Color.validate_color('#G')}.should raise_error
    end
  end
end

Version data entries

54 entries across 54 versions & 4 rubygems

Version Path
rubyXL-git-ref-6002046-2.0.0 spec/lib/color_spec.rb
rubyXL-2.5.4 spec/lib/color_spec.rb
rubyXL-2.5.3 spec/lib/color_spec.rb
rubyXL-2.5.2 spec/lib/color_spec.rb
rubyXL-2.5.1 spec/lib/color_spec.rb
rubyXL-2.5.0 spec/lib/color_spec.rb
rubyXL-2.4.4 spec/lib/color_spec.rb
rubyXL-2.4.3 spec/lib/color_spec.rb
rubyXL-2.4.2 spec/lib/color_spec.rb
rubyXL-2.4.1 spec/lib/color_spec.rb
rubyXL-2.4.0 spec/lib/color_spec.rb
rubyXL-2.3.4 spec/lib/color_spec.rb
rubyXL-2.3.3 spec/lib/color_spec.rb
rubyXL-2.3.2 spec/lib/color_spec.rb
rubyXL-2.3.1 spec/lib/color_spec.rb
rubyXL-2.3.0 spec/lib/color_spec.rb
rubyXL-2.2.0 spec/lib/color_spec.rb
rubyXL-2.1.1 spec/lib/color_spec.rb
listen360-rubyXL-1.2.10.2 spec/lib/color_spec.rb
listen360-rubyXL-1.2.10.1 spec/lib/color_spec.rb