integration_test: fix indentation for test formulae
This commit is contained in:
parent
9c1bdfe229
commit
cdb07d89ae
@ -29,6 +29,7 @@ require "active_support/core_ext/hash/deep_merge"
|
|||||||
require "active_support/core_ext/file/atomic"
|
require "active_support/core_ext/file/atomic"
|
||||||
require "active_support/core_ext/enumerable"
|
require "active_support/core_ext/enumerable"
|
||||||
require "active_support/core_ext/string/exclude"
|
require "active_support/core_ext/string/exclude"
|
||||||
|
require "active_support/core_ext/string/indent"
|
||||||
|
|
||||||
I18n.backend.available_locales # Initialize locales so they can be overwritten.
|
I18n.backend.available_locales # Initialize locales so they can be overwritten.
|
||||||
I18n.backend.store_translations :en, support: { array: { last_word_connector: " and " } }
|
I18n.backend.store_translations :en, support: { array: { last_word_connector: " and " } }
|
||||||
|
|||||||
@ -171,7 +171,7 @@ RSpec.shared_context "integration test" do
|
|||||||
Formulary.core_path(name).tap do |formula_path|
|
Formulary.core_path(name).tap do |formula_path|
|
||||||
formula_path.write <<~RUBY
|
formula_path.write <<~RUBY
|
||||||
class #{Formulary.class_s(name)} < Formula
|
class #{Formulary.class_s(name)} < Formula
|
||||||
#{content}
|
#{content.indent(2)}
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
|
|||||||
@ -17,8 +17,6 @@ describe Utils::Bottles do
|
|||||||
|
|
||||||
describe "#add_bottle_stanza!" do
|
describe "#add_bottle_stanza!" do
|
||||||
let(:bottle_output) do
|
let(:bottle_output) do
|
||||||
require "active_support/core_ext/string/indent"
|
|
||||||
|
|
||||||
<<~RUBY.chomp.indent(2)
|
<<~RUBY.chomp.indent(2)
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "f7b1fc772c79c20fddf621ccc791090bc1085fcef4da6cca03399424c66e06ca" => :sierra
|
sha256 "f7b1fc772c79c20fddf621ccc791090bc1085fcef4da6cca03399424c66e06ca" => :sierra
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user