Sha256: 06cf953afa04ad0e36b4ceffc564faf5b22cddb2edc93c2c1895bf27a22c9183

Contents?: true

Size: 704 Bytes

Versions: 10

Compression:

Stored size: 704 Bytes

Contents

describe Neutral::Icons::Set do
  let(:set) { Neutral::Icons::Set.new('my_test_icons') }
  
  describe "#name" do
    subject { set.name }
    it { should be_a(Symbol) }
  end
  
  describe "#definitions" do
    subject { set.definitions }
    it { should be_a(Hash) }
    it { should == Neutral.icons.send(Neutral.config.default_icon_set).to_h }
  end

  %w[positive negative remove].each do |definition|
    describe definition do
      let(:fa_definition) { "fa #{definition}" }

      it "adds Font Awesome definition for #{definition} icon to definitions" do
        set.send(definition, fa_definition)
        set.definitions[definition.to_sym].should == fa_definition
      end
    end
  end
end 

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
neutral-0.0.10 spec/icons/set_spec.rb
neutral-0.0.9 spec/icons/set_spec.rb
neutral-0.0.8 spec/icons/set_spec.rb
neutral-0.0.7 spec/icons/set_spec.rb
neutral-0.0.6 spec/icons/set_spec.rb
neutral-0.0.5 spec/icons/set_spec.rb
neutral-0.0.4 spec/icons/set_spec.rb
neutral-0.0.3 spec/icons/set_spec.rb
neutral-0.0.2 spec/icons/set_spec.rb
neutral-0.0.1 spec/icons/set_spec.rb