Sha256: 6f5c6c3306c6ff6143f61f309ca5e469313ee2564c9a5cb6ce48d594a71412fd

Contents?: true

Size: 364 Bytes

Versions: 8

Compression:

Stored size: 364 Bytes

Contents

module Finitio
  module JsonSchema
    describe "AdType" do

      let(:type) {
        type = AdType.new(Color, [rgb_contract, hex_contract])
      }

      it 'works as expected' do
        expect(type.to_json_schema).to eql({
          anyOf: [
            { type: "integer" },
            { type: "string" }
          ]
        })
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
finitio-0.12.0 spec/json_schema/test_ad_type.rb
finitio-0.11.4 spec/json_schema/test_ad_type.rb
finitio-0.11.3 spec/json_schema/test_ad_type.rb
finitio-0.11.2 spec/json_schema/test_ad_type.rb
finitio-0.11.1 spec/json_schema/test_ad_type.rb
finitio-0.10.0 spec/json_schema/test_ad_type.rb
finitio-0.9.1 spec/json_schema/test_ad_type.rb
finitio-0.9.0 spec/json_schema/test_ad_type.rb