Sha256: 9389b912b1853f5b664baf41758822865ae0e08a9e079605368a4ab31b3c609e
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 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 = 'spec/fake_template.md.erb' c.output_file = 'spec/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smashing_docs-0.0.2 | spec/spec_helper.rb |