diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-06-16 12:19:28 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-07-03 09:40:59 +0530 |
commit | 1dcca0957178664d08a0e6cc019d7dcb0844da7f (patch) | |
tree | 6e42b231a74ec2486459b9316d09751704ec1b51 /spec/support/matchers.rb | |
parent | d2eb91eae2d17639dc12d64a64542fbc0c952098 (diff) | |
download | bundler-1dcca0957178664d08a0e6cc019d7dcb0844da7f.tar.gz |
Preventing registered source to be reinstalled
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r-- | spec/support/matchers.rb | 7 |
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 |