Sha256: 3906d1938ea06e528e916c80c99658ce5257f36bfb933e3b5acf18dd84fbd1c4
Contents?: true
Size: 657 Bytes
Versions: 8
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper' describe Dragonfly::Generation::HashWithCssStyleKeys do before(:each) do @hash = Dragonfly::Generation::HashWithCssStyleKeys[ :font_style => 'normal', :'font-weight' => 'bold', 'font_colour' => 'white', 'font-size' => 23, :hello => 'there' ] end describe "accessing using underscore symbol style" do it{ @hash[:font_style].should == 'normal' } it{ @hash[:font_weight].should == 'bold' } it{ @hash[:font_colour].should == 'white' } it{ @hash[:font_size].should == 23 } it{ @hash[:hello].should == 'there' } it{ @hash[:non_existent_key].should be_nil } end end
Version data entries
8 entries across 8 versions & 2 rubygems