Sha256: db8a6be80ce171893b5a9549c4401d460de8568d59473fab28f382b49de7d1f4

Contents?: true

Size: 620 Bytes

Versions: 4

Compression:

Stored size: 620 Bytes

Contents

require 'spec_helper'

describe Galakei::Spacer do
  context "#000000" do
    subject { described_class.new("#000000") }
    it { subject.img_tag.should == %Q[<img src='/galakei/spacer/000000' width='100%' height='1'>] }
    it { subject.create.should_not be_nil }
  end
  %w[000000 aqua black blue fuchsia gray green lime maroon navy olive orange purple red silver teal white yellow].each do |s|
    context s do
      subject { described_class.new(s) }
      it { subject.img_tag.should == %Q[<img src='/galakei/spacer/#{s}' width='100%' height='1'>] }
      it { subject.create.should_not be_nil }
    end
  end 
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
galakei-0.6.6 spec/galakei/spacer_spec.rb
galakei-0.6.5 spec/galakei/spacer_spec.rb
galakei-0.6.4 spec/galakei/spacer_spec.rb
galakei-0.6.3 spec/galakei/spacer_spec.rb