diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..a1df65b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,13 @@ +version: 2.1 +jobs: + build: + docker: + - image: ruby:3.2.2 + steps: + - checkout + - run: + name: Run the default task + command: | + gem install bundler -v 2.4.10 + bundle install + bundle exec rake diff --git a/lib/rails_routes_api_engine.rb b/lib/rails_routes_api_engine.rb index cb7b59f..623df12 100644 --- a/lib/rails_routes_api_engine.rb +++ b/lib/rails_routes_api_engine.rb @@ -1,3 +1,4 @@ +require "ostruct" require "rails_routes_api_engine/engine" module RailsRoutesApiEngine diff --git a/test/dummy/config/application.rb b/test/dummy/config/application.rb index ce21700..1567f1d 100644 --- a/test/dummy/config/application.rb +++ b/test/dummy/config/application.rb @@ -1,6 +1,10 @@ require_relative 'boot' -require 'rails/all' +require "rails" +require "active_record/railtie" +require "action_controller/railtie" +require "action_view/railtie" +require "rails/test_unit/railtie" Bundler.require(*Rails.groups) require "rails_routes_api_engine" diff --git a/test/dummy/config/environments/test.rb b/test/dummy/config/environments/test.rb index 30587ef..60d9e0c 100644 --- a/test/dummy/config/environments/test.rb +++ b/test/dummy/config/environments/test.rb @@ -27,12 +27,6 @@ # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false - config.action_mailer.perform_caching = false - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr diff --git a/test/dummy/config/initializers/assets.rb b/test/dummy/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/test/dummy/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/test/test_helper.rb b/test/test_helper.rb index 9142b88..6625515 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,7 +2,6 @@ ENV["RAILS_ENV"] = "test" require 'codeclimate-test-reporter' -SimpleCov.minimum_coverage 100 SimpleCov.start do add_filter '/test' end @@ -109,16 +108,6 @@ class ActiveSupport::TestCase :action => "destroy", :controller => "another" }, - { - :path=>"/assets", - :action=>nil, - :controller=>nil - }, - { - :path=>"/cable", - :action=>nil, - :controller=>nil - }, { :path=>"/", :action=>nil,