Sha256: cf903ed7ade2d8971aff188503e77d38c65940f163610c57f4a1000b284c9121
Contents?: true
Size: 458 Bytes
Versions: 17
Compression:
Stored size: 458 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' module Cucumber module Model describe Table do it "should convert into hash-array" do raw = [ %w{name gender}, %w{aslak male}, %w{patty female}, ] ha = Table.new(raw).hashes ha.should == [ {'name' => 'aslak', 'gender' => 'male'}, {'name' => 'patty', 'gender' => 'female'} ] end end end end
Version data entries
17 entries across 17 versions & 5 rubygems