Sha256: dc394e27bfdda5122d0fe98fd486a3df50f8b351971635e8f2be8b5f25890bcc

Contents?: true

Size: 361 Bytes

Versions: 3

Compression:

Stored size: 361 Bytes

Contents

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

<% if options.fetch(:rails, nil) %>module ApiHelper
  include Rack::Test::Methods

  def app
    Rails.application
  end
end

RSpec.configure do |config|
  config.include ApiHelper, type: :request
end<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rambo_ruby-0.3.3 lib/rambo/rspec/templates/rambo_helper_file_template.erb
rambo_ruby-0.3.2 lib/rambo/rspec/templates/rambo_helper_file_template.erb
rambo_ruby-0.3.1 lib/rambo/rspec/templates/rambo_helper_file_template.erb