Sha256: 74ee32819d91e31d0d62ebdf1f6986388f9e91320b07f84c031f9de6ead5b5e5

Contents?: true

Size: 728 Bytes

Versions: 2

Compression:

Stored size: 728 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment", __FILE__)
require "rails/test_help"
require "minitest/rails"

# To add Capybara feature tests add `gem "minitest-rails-capybara"`
# to the test group in the Gemfile and uncomment the following:
require "minitest/rails/capybara"

# Uncomment for awesome colorful output
# require "minitest/pride"

Rails.backtrace_cleaner.remove_silencers!

def setup_lib_spec
  @drawing = Drawing.create
  controller = DrawingsController.new
  controller.request = ActionController::TestRequest.new
  # Workaround for https://github.com/rails/rails/issues/11662
  controller.define_singleton_method(:params) do
    {}
  end

  @view = controller.view_context
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sketchily-4.0.1 spec/test_helper.rb~
sketchily-4.0.0 spec/test_helper.rb~