Sha256: 768a666e2c5d5ff56fe8aa05c30944bfc6a866abb36877558ba5f8be840f0375

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 Bytes

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require 'minitest/autorun'
require 'rails'

ActiveSupport.test_order = :sorted

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

9 entries across 9 versions & 1 rubygems

Version Path
strong_actions-0.3.0 test/test_helper.rb
strong_actions-0.2.2 test/test_helper.rb
strong_actions-0.2.1 test/test_helper.rb
strong_actions-0.2.0 test/test_helper.rb
strong_actions-0.1.1 test/test_helper.rb
strong_actions-0.1.0 test/test_helper.rb
strong_actions-0.0.9 test/test_helper.rb
strong_actions-0.0.8 test/test_helper.rb
strong_actions-0.0.7 test/test_helper.rb