Sha256: 582915dd554a8ea0b0c234df3b2fd6be111833d828cce5077b054b79ee3cf06a

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

require "<%= @options.fetch(:framework, nil).nil? || @options.fetch(:framework) == :rails ? "rails_helper" : "spec_helper" %>"
require "rack/test"
require_relative "./support/matchers/rambo_matchers"

module ApiHelper
  include Rack::Test::Methods

  def app
    require "active_support/core_ext/class/subclasses"
    <%= app_classes.fetch(@options.fetch(:framework, :rails)) %>
  end
end

RSpec.configure do |config|
  config.include ApiHelper, type: :rambo
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rambo_ruby-0.7.1 lib/rambo/rspec/templates/rambo_helper_file_template.erb
rambo_ruby-0.7.0 lib/rambo/rspec/templates/rambo_helper_file_template.erb
rambo_ruby-0.6.0 lib/rambo/rspec/templates/rambo_helper_file_template.erb