Sha256: 4a435ddf48fe3ad884214b2e38862ffe881e4b72897007abc2f4c9f66a1524a4

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

When /^I ask if the user could write "([^"]*)"$/ do |language|
  @expected = @user.could? :write, language
end

When /^I create an? "([^"]*)" user$/ do |role_name|
  @user = User.new(role_name.to_sym)
end

When /^I ask if the user can read$/ do
  @expected = !!(@user.could? :read)
end

Then /^I learn that they can't$/ do
  @expected.should be_false
end

Then /^I learn that they can$/ do
  @expected.should be_true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reuser-3.1.2 features/step_definitions/permission_steps.rb
reuser-3.1.1 features/step_definitions/permission_steps.rb