Sha256: e6eb7aa301b23105056556c33e1d63fee7a6f84a863c8fd938b7a545d9489505

Contents?: true

Size: 255 Bytes

Versions: 36

Compression:

Stored size: 255 Bytes

Contents

describe Enumerable, "#as_avro" do
  it "returns an array" do
    expect(Set.new.as_avro).to eq []
  end

  it "coerces the items to Avro" do
    x = double(as_avro: "x")
    y = double(as_avro: "y")

    expect([x, y].as_avro).to eq ["x", "y"]
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
avro_turf-1.17.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.16.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.15.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.14.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.13.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.12.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.11.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.10.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.9.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.8.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.7.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.6.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.5.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.4.1 spec/core_ext/enumerable_spec.rb
avro_turf-1.4.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.3.1 spec/core_ext/enumerable_spec.rb
avro_turf-1.3.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.2.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.1.0 spec/core_ext/enumerable_spec.rb
avro_turf-1.0.0 spec/core_ext/enumerable_spec.rb