Sha256: 557031762a52e1218ad8fc1abb6bd93b4659507d8eef65084de22f8eb292607b

Contents?: true

Size: 377 Bytes

Versions: 58

Compression:

Stored size: 377 Bytes

Contents

require './spec/spec_helper'

describe SparkApi::OptionsHash do
  it "should convert symbol parameters to a string" do
    h = {:parameter_one => 1,
         "parameter_two" => 2,
         3 => 3}
    o_h = SparkApi::OptionsHash.new(h)
    o_h.keys.size.should eq(3)
    o_h["parameter_one"].should eq(1)
    o_h["parameter_two"].should eq(2)
    o_h[3].should eq(3)
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
spark_api-1.4.34 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.32 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.31 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.29 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.28 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.27 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.26 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.25 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.24 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.23 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.22 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.21 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.20 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.19 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.18 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.17 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.16 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.15 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.14 spec/unit/spark_api/options_hash_spec.rb
spark_api-1.4.13 spec/unit/spark_api/options_hash_spec.rb