summaryrefslogtreecommitdiff
path: root/spec/bundler/env_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/env_spec.rb')
-rw-r--r--spec/bundler/env_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/env_spec.rb b/spec/bundler/env_spec.rb
index 245073d9b8..f2cf26c4cf 100644
--- a/spec/bundler/env_spec.rb
+++ b/spec/bundler/env_spec.rb
@@ -53,13 +53,13 @@ describe Bundler::Env do
let(:output) { env.report(:print_gemfile => true) }
it "prints the environment" do
- expect(output).to start_with("Environment")
+ expect(output).to start_with("## Environment")
end
end
context "when Gemfile contains a gemspec and print_gemspecs is true" do
let(:gemspec) do
- <<-GEMSPEC.gsub(/^\s+/, "")
+ strip_whitespace(<<-GEMSPEC)
Gem::Specification.new do |gem|
gem.name = "foo"
gem.author = "Fumofu"
@@ -76,7 +76,7 @@ describe Bundler::Env do
end
it "prints the gemspec" do
- output = env.report(:print_gemspecs => true).gsub(/^\s+/, "")
+ output = env.report(:print_gemspecs => true)
expect(output).to include("foo.gemspec")
expect(output).to include(gemspec)