summaryrefslogtreecommitdiff
path: root/spec/bundler/index_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/index_spec.rb')
-rw-r--r--spec/bundler/index_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/bundler/index_spec.rb b/spec/bundler/index_spec.rb
index da8e5731ca..1ff592ca81 100644
--- a/spec/bundler/index_spec.rb
+++ b/spec/bundler/index_spec.rb
@@ -26,4 +26,12 @@ describe Bundler::Index do
end
end
end
+
+ context "with specs that include development dependencies" do
+ let(:specs) { [*build_spec("a", "1.0.0") {|s| s.development("b", "~> 1.0") }] }
+
+ it "does not include b in #dependency_names" do
+ expect(subject.dependency_names).not_to include("b")
+ end
+ end
end