Files
RubyMotion/test/spec/hash_spec.rb
2012-09-10 15:36:37 +02:00

8 lines
140 B
Ruby

describe "Hash" do
it 'can be created using []' do
h = Hash[a: 'a', b: 'b']
h[:a].should == 'a'
h[:b].should == 'b'
end
end