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