Sha256: f8156275a2c94fed8b600d71b4b63d42ee5837f3a5bc628947ffd9cfcd06664d
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
Given /^I am not authorized$/ do Mist.reset_authorizations! end Given /^I am authorized$/ do Mist.authorize { |controller| true } end Given /^I am authorized to (.*)$/ do |what| what = what.gsub(/ /, '_').underscore.to_sym Mist.authorize(what) { |controller| true } end Given /^I am not authorized to (.*)$/ do |what| what = what.gsub(/ /, '_').underscore.to_sym Mist.authorize(what) { |controller| false } end
Version data entries
4 entries across 4 versions & 1 rubygems