-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from AlchemyCMS/move-test-deps
Move test deps
- Loading branch information
Showing
18 changed files
with
60 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
module Alchemy | ||
describe Admin::UsersController do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
describe Alchemy::BaseController do | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
describe "Admin users feature." do | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
describe "Login: " do | ||
context "If user is present" do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
describe "Security: " do | ||
context "If user is present" do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
require 'cancan/matchers' | ||
|
||
describe Alchemy::Permissions do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
module Alchemy | ||
describe Notifications do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative './spec_helper' | ||
|
||
# Configure Rails Environment | ||
ENV["RAILS_ENV"] ||= "test" | ||
|
||
require File.expand_path("../dummy/config/environment.rb", __FILE__) | ||
require 'rails-controller-testing' | ||
require "rspec/rails" | ||
require 'rspec/active_model/mocks' | ||
require "capybara/rails" | ||
require 'factory_bot' | ||
require 'alchemy/test_support/controller_requests' | ||
require 'alchemy/test_support/integration_helpers' | ||
require 'alchemy/devise/test_support/factories' | ||
|
||
ActionMailer::Base.delivery_method = :test | ||
ActionMailer::Base.perform_deliveries = true | ||
ActionMailer::Base.default_url_options[:host] = "test.com" | ||
Capybara.default_driver = :rack_test | ||
Capybara.default_selector = :css | ||
Capybara.ignore_hidden_elements = false | ||
ActiveJob::Base.queue_adapter = :test | ||
|
||
ActiveSupport::Deprecation.silenced = true | ||
|
||
RSpec.configure do |config| | ||
config.infer_spec_type_from_file_location! | ||
config.use_transactional_fixtures = true | ||
config.include Devise::TestHelpers, :type => :controller | ||
config.include Alchemy::TestSupport::ControllerRequests, :type => :controller | ||
config.include Alchemy::Engine.routes.url_helpers | ||
config.include FactoryBot::Syntax::Methods | ||
config.include ActiveJob::TestHelper | ||
[:controller, :feature, :request].each do |type| | ||
config.include Alchemy::TestSupport::IntegrationHelpers, type: type | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
describe "Password Routing" do | ||
routes { Alchemy::Engine.routes } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
describe "Session Routing" do | ||
routes { Alchemy::Engine.routes } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'spec_helper' | ||
require 'rails_helper' | ||
|
||
describe "User Routing" do | ||
routes { Alchemy::Engine.routes } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters