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

Version Path
aslakhellesoy-cucumber-0.1.10 spec/cucumber/model/table_spec.rb
aslakhellesoy-cucumber-0.1.11 spec/cucumber/model/table_spec.rb
aslakhellesoy-cucumber-0.1.12 spec/cucumber/model/table_spec.rb
aslakhellesoy-cucumber-0.1.13 spec/cucumber/model/table_spec.rb
aslakhellesoy-cucumber-0.1.9 spec/cucumber/model/table_spec.rb
bts-cucumber-0.1.13.1 spec/cucumber/model/table_spec.rb
bts-cucumber-0.1.13.2 spec/cucumber/model/table_spec.rb
bts-cucumber-0.1.13.3 spec/cucumber/model/table_spec.rb
elight-cucumber-0.1.9 spec/cucumber/model/table_spec.rb
jeffrafter-cucumber-0.1.10 spec/cucumber/model/table_spec.rb
jeffrafter-cucumber-0.1.12 spec/cucumber/model/table_spec.rb
cucumber-0.1.11 spec/cucumber/model/table_spec.rb
cucumber-0.1.13 spec/cucumber/model/table_spec.rb
cucumber-0.1.10 spec/cucumber/model/table_spec.rb
cucumber-0.1.12 spec/cucumber/model/table_spec.rb
cucumber-0.1.8 spec/cucumber/model/table_spec.rb
cucumber-0.1.9 spec/cucumber/model/table_spec.rb