summaryrefslogtreecommitdiff
path: root/spec/support/matchers.rb
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-06-16 12:19:28 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-07-03 09:40:59 +0530
commit1dcca0957178664d08a0e6cc019d7dcb0844da7f (patch)
tree6e42b231a74ec2486459b9316d09751704ec1b51 /spec/support/matchers.rb
parentd2eb91eae2d17639dc12d64a64542fbc0c952098 (diff)
downloadbundler-1dcca0957178664d08a0e6cc019d7dcb0844da7f.tar.gz
Preventing registered source to be reinstalled
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r--spec/support/matchers.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb
index 76b0c32eef..4f7ad6c48d 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -71,6 +71,13 @@ module Spec
end
end
+ def plugin_should_not_be_installed(*names)
+ names.each do |name|
+ path = Plugin.installed?(name)
+ expect(path).to be_falsey
+ end
+ end
+
def should_be_locked
expect(bundled_app("Gemfile.lock")).to exist
end