Sha256: aeb43e9b0943183e40d34c5737cfa1010fff36b72f2fde786791d01ad68e3619
Contents?: true
Size: 425 Bytes
Versions: 5
Compression:
Stored size: 425 Bytes
Contents
RSpec::Matchers.define :be_readable do match do |file| if file.respond_to?(:readable?) file.readable?(@by_whom, @by_user) else if @by_user != nil backend.check_access_by_user(file, @by_user, 'r') else backend.check_readable(file, @by_whom) end end end chain :by do |by_whom| @by_whom = by_whom end chain :by_user do |by_user| @by_user = by_user end end
Version data entries
5 entries across 5 versions & 1 rubygems