Sha256: 500a2f101470518c6bf939b7685b513ff489c4dc7db115abfc45fdfd118b8abc

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'

describe Jan::Symbol::Band::Space do
  describe 'initializer' do
    it 'receives width' do
      bar = described_class.new(1)
      expect(bar).to be_an_instance_of(described_class)
      expect(bar.color).to eq 'white'
    end

    it 'receives width and color' do
      bar = described_class.new(1, color: 'gray')
      expect(bar).to be_an_instance_of(described_class)
      expect(bar.color).to eq 'gray'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jan-0.2.4 spec/jan/symbol/band/space_spec.rb
jan-0.2.3 spec/jan/symbol/band/space_spec.rb