Sha256: b87ee68f3e7597bd2c424fa95729050e45b341a581882d05ee9a9a356783896f

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

require 'spec_helper'

describe GrapeMarkdown::Resource do
  include_context 'configuration'

  subject { GrapeMarkdown::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(
        GrapeMarkdown::Route.new(Grape::Router::Route.new('GET', '/'))
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-markdown-0.0.7 spec/grape-markdown/resource_spec.rb