summaryrefslogtreecommitdiff
path: root/spec/bundler/gem_helper_spec.rb
diff options
context:
space:
mode:
authorSimon Elcham <s.elcham@xair.fr>2015-02-05 00:31:11 +0100
committerSimon Elcham <s.elcham@xair.fr>2015-02-05 00:31:11 +0100
commita4c532ee20c208db56b764a3bb2981e6d4497d1a (patch)
tree56e0fb865eebdb3b167d096ac0637ce939e92550 /spec/bundler/gem_helper_spec.rb
parentea9f62f9dfb6cf5284ec9a8371552afc90fb643a (diff)
downloadbundler-a4c532ee20c208db56b764a3bb2981e6d4497d1a.tar.gz
Handle double underscores in new gem's name
Diffstat (limited to 'spec/bundler/gem_helper_spec.rb')
-rw-r--r--spec/bundler/gem_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/gem_helper_spec.rb b/spec/bundler/gem_helper_spec.rb
index f94dac6a4e..d605f2e7ad 100644
--- a/spec/bundler/gem_helper_spec.rb
+++ b/spec/bundler/gem_helper_spec.rb
@@ -3,7 +3,7 @@ require 'rake'
require 'bundler/gem_helper'
describe Bundler::GemHelper do
- let(:app_name) { "test" }
+ let(:app_name) { "lorem__ipsum" }
let(:app_path) { bundled_app app_name }
let(:app_gemspec_path) { app_path.join("#{app_name}.gemspec") }
@@ -43,7 +43,7 @@ describe Bundler::GemHelper do
app_path = bundled_app "#{app_name}-foo_bar"
lib = app_path.join("lib/#{app_name}/foo_bar.rb").read
- expect(lib).to include("module #{app_name.capitalize}")
+ expect(lib).to include("module LoremIpsum")
expect(lib).to include("module FooBar")
end
end