Sha256: 11410550cbd25300f101ed825d603025dff5fb5571ef8e45758afbe50a0d3f8a
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
require 'spec_helper' describe NullConverter do describe ".matches?" do it "should always match" do expect(NullConverter.matches?("blue")).to be_true expect(NullConverter.matches?(r: 51, g: 102, b: 204)).to be_true end end describe ".rgba" do it "should throw an error" do expect { conv = NullConverter.new("asdf") conv.rgba }.to raise_error(InvalidColorError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
color_conversion-0.1.0 | spec/converters/null_converter_spec.rb |