Sha256: 09fed8cf13b09d01a1c418ec1cd9bd36a74b877f30cd4bff9211e872e6c2db67

Contents?: true

Size: 763 Bytes

Versions: 9

Compression:

Stored size: 763 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'smashing_docs'
RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end
  config.before(:each) do
    SmashingDocs.config do |c|
      c.template_file = 'gem_rspec/fake_template.md.erb'
      c.output_file   = 'gem_rspec/fake_output.md'
    end
  end
  config.after(:each) do
    SmashingDocs.finish!
  end
end

# Include some fake structs that act like response/request objects.
Request  = Struct.new :method, :params, :path
Response = Struct.new :body, :success?

def request
  Request.new("GET", {id: 12}, 'api/users')
end

def response
  Response.new('{"id": 12, "name": "rick"}', true)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
smashing_docs-1.3.6 gem_rspec/spec_helper.rb
smashing_docs-1.3.5 gem_rspec/spec_helper.rb
smashing_docs-1.3.4 gem_rspec/spec_helper.rb
smashing_docs-1.3.3 gem_rspec/spec_helper.rb
smashing_docs-1.3.2 gem_rspec/spec_helper.rb
smashing_docs-1.3.1 gem_rspec/spec_helper.rb
smashing_docs-1.2.1 gem_rspec/spec_helper.rb
smashing_docs-1.2.0 gem_rspec/spec_helper.rb
smashing_docs-1.1.0 gem_rspec/spec_helper.rb