Sha256: cf364843b4c56427c24e8db0fa3df995dedda50b1e794a4b939c9dd1090540f4

Contents?: true

Size: 413 Bytes

Versions: 20

Compression:

Stored size: 413 Bytes

Contents

module IntegrationHelper
  extend RSpec::SharedContext
  let(:schema_context){ { } }
  let(:schema_method){ :example }
  let(:schema){ described_class.new(schema_context).send schema_method }
  let(:json){ schema.as_json }
  let(:expected_json){ { } }

  RSpec.shared_examples_for 'a builder' do
    it 'should produce the correct json schema' do
      expect(json).to eql expected_json.as_json
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
json-schema_builder-0.8.2 spec/support/integration_helper.rb
json-schema_builder-0.8.1 spec/support/integration_helper.rb
json-schema_builder-0.8.0 spec/support/integration_helper.rb
json-schema_builder-0.7.1 spec/support/integration_helper.rb
json-schema_builder-0.7.0 spec/support/integration_helper.rb
json-schema_builder-0.6.1 spec/support/integration_helper.rb
json-schema_builder-0.6.0 spec/support/integration_helper.rb
json-schema_builder-0.5.0 spec/support/integration_helper.rb
json-schema_builder-0.4.0 spec/support/integration_helper.rb
json-schema_builder-0.3.1 spec/support/integration_helper.rb
json-schema_builder-0.3.0 spec/support/integration_helper.rb
json-schema_builder-0.2.1 spec/support/integration_helper.rb
json-schema_builder-0.2.0 spec/support/integration_helper.rb
json-schema_builder-0.1.0 spec/support/integration_helper.rb
json-schema_builder-0.0.9 spec/support/integration_helper.rb
json-schema_builder-0.0.8 spec/support/integration_helper.rb
json-schema_builder-0.0.7 spec/support/integration_helper.rb
json-schema_builder-0.0.6 spec/support/integration_helper.rb
json-schema_builder-0.0.5 spec/support/integration_helper.rb
json-schema_builder-0.0.4 spec/support/integration_helper.rb