Sha256: c9b0e654b9983e463959406a02844af432e4c00da00ac9917b271057ac6f9d55

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require_relative '../lib/smarf_doc'
require 'minitest/autorun'
require 'minitest/pride'
require 'pry'

class SmarfDocTest < Minitest::Test
  def setup
    SmarfDoc.config do |c|
      c.template_file = 'test/fake_template.md'
      c.output_file   = 'test/fake_output.md'
    end
  end

  def teardown
    SmarfDoc.finish!
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smarf_doc-1.0.0 test/test_helper.rb