Skip to content

Commit

Permalink
Merge pull request #38378 from bknarendra/fix_template_for_benchmark_…
Browse files Browse the repository at this point in the history
…generator

Fix the environment.rb file path in the benchmark generator template
  • Loading branch information
tenderlove committed Feb 3, 2020
2 parents 018a88c + f8059d2 commit b693829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "../config/environment"
require_relative "../../config/environment"

# Any benchmarking setup goes here...

Expand Down
4 changes: 2 additions & 2 deletions railties/test/generators/benchmark_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BenchmarkGeneratorTest < Rails::Generators::TestCase
assert_equal <<~RUBY, content
# frozen_string_literal: true
require_relative "../config/environment"
require_relative "../../config/environment"
# Any benchmarking setup goes here...
Expand Down Expand Up @@ -56,7 +56,7 @@ class BenchmarkGeneratorTest < Rails::Generators::TestCase
assert_equal <<~RUBY, content
# frozen_string_literal: true
require_relative "../config/environment"
require_relative "../../config/environment"
# Any benchmarking setup goes here...
Expand Down

0 comments on commit b693829

Please sign in to comment.