Sha256: 8dcc8bb494593a1fbf92a554c5886453b733b350c7e20f1db8ab6cd9c85db5c4
Contents?: true
Size: 443 Bytes
Versions: 18
Compression:
Stored size: 443 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(example, file, @by_user, 'r') else backend.check_readable(example, 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
18 entries across 18 versions & 1 rubygems