Sha256: 486c1e100d1cea032dff020e0bb97a7426e54728cad8328a09b2869ea48a1d2a

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

require 'tester/reporter/status_code_report'
require 'tester/test_helper'

class Module
  attr_accessor :report
  attr_accessor :test_helper

  def initialize
    self.test_helper = TestHelper.new
  end

  def set_report report
    self.report = report
  end

  def go definition, report
    set_report report
  end

  def order
    5
  end

  def before
    self.test_helper.before
  end

  def after
    self.test_helper.after
  end

  def call method, url, format_case
    self.before
    response = method.call url, format_case.payload, format_case.headers
    self.after
    response
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api-tester-0.0.3 lib/tester/modules/module.rb