Sha256: 977c0c589b9b929ae75d1e08a26d43717e528872969459312c5908b050c46869
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
module IntegrationHelper extend RSpec::SharedContext let(:schema){ described_class.new.example } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
json-schema_builder-0.0.2 | spec/support/integration_helper.rb |
json-schema_builder-0.0.1 | spec/support/integration_helper.rb |