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