Sha256: 3d81ad7f6bd1ff3dd6fbf07a4e1a21e19267d675bfc223bf7d52dc709833db9f
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
require 'spec_helper' describe GrapeApiary::Resource do include_context 'configuration' subject { GrapeApiary::Resource.new('foo', []) } context 'sample' do it 'request generation is delegated to a generator' do expect(subject.sample_generator).to receive(:request) subject.sample_request end it 'response generation is delegated to a generator' do expect(subject.sample_generator).to receive(:response) subject.sample_response end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-apiary-0.0.4 | spec/grape-apiary/resource_spec.rb |
grape-apiary-0.0.3 | spec/grape-apiary/resource_spec.rb |