Sha256: a542fca05251a872cee534474ecf397619a72c06a90bcd074b72a9005c7aacd1
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require 'minitest/autorun' require 'rails' class FakeApplication < Rails::Application end Rails.application = FakeApplication require 'strong_actions' module ActionController SharedTestRoutes = ActionDispatch::Routing::RouteSet.new SharedTestRoutes.draw do get ':controller(/:action)' delete ':controller(/:action)' end class Base include ActionController::Testing include SharedTestRoutes.url_helpers end class ActionController::TestCase setup do @routes = SharedTestRoutes end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strong_actions-0.0.6 | test/test_helper.rb |