Sha256: 6d92d5ed7a57d99603de8b77825393f4b4ffeba5200234414be989daa6598032
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
describe UnderOs::UI::Icon do describe '#initialize' do it "should allow to initialize the icon with type" do icon = UnderOs::UI::Icon.new('ok') icon.type.should == 'ok' end it "should set the default size of 20 pixels" do icon = UnderOs::UI::Icon.new(type: 'ok') icon.size.should == 20 end it "should assign correct tag name" do UnderOs::UI::Icon.new.tagName.should == 'ICON' end end describe '#type' do it "should compile types into acutal UTF-8 keys" do icon = UnderOs::UI::Icon.new(:ok) icon._.currentTitle.should == "\xEF\x80\x8C" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
under-os-1.1.0 | spec/lib/under_os/ui/icon_spec.rb |
under-os-1.0.0 | spec/lib/under_os/ui/icon_spec.rb |