Sha256: 06b8d76914c50df0ce5cc1158f25e8766298cd6cfa22ed858223061d60122d8b
Contents?: true
Size: 654 Bytes
Versions: 8
Compression:
Stored size: 654 Bytes
Contents
RSpec::Matchers.define :be_installed do match do |name| if name.respond_to?(:installed?) name.installed?(@provider, @version) else if @provider.nil? backend.check_installed(example, name) else check_method = "check_installed_by_#{@provider}".to_sym unless backend.respond_to?(check_method) raise ArgumentError.new("`be_installed` matcher doesn't support #{@under}") end backend.send(check_method, example, name, @version) end end end chain :by do |provider| @provider = provider end chain :with_version do |version| @version = version end end
Version data entries
8 entries across 8 versions & 1 rubygems