Skip to content

Commit 0eee2b8

Browse files
committed
Refactor tests
1 parent 054ba5b commit 0eee2b8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

test/rails/app_env/credentials_test.rb renamed to test/units/app_env/credentials_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require "minitest/mock"
2+
require_relative "../../test_helper"
23

34
class Rails::AppEnv::CredentialsTest < ActiveSupport::TestCase
45
test "Credentials#content_path returns 'config/credentials/{APP_ENV}.yml.enc' if the file exist" do

test/rails/app_env/environment_inquirer_test.rb renamed to test/units/app_env/environment_inquirer_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require_relative "../../test_helper"
2+
13
class Rails::AppEnv::EnvironmentInquirerTest < ActiveSupport::TestCase
24
test "EnvironmentInquirer is a kind of ActiveSupport::EnvironmentInquirer" do
35
assert_kind_of ActiveSupport::EnvironmentInquirer, Rails::AppEnv::EnvironmentInquirer.new("foo")

test/rails/app_env_test.rb renamed to test/units/app_env_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "test_helper"
1+
require_relative "../test_helper"
22

33
class Rails::AppEnvTest < ActiveSupport::TestCase
44
test "it has a version number" do

0 commit comments

Comments
 (0)