Sha256: 4090c4779ad74a994102c75372c58a32cb94691ce5ddf8c1a971006206ba663e
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
When(/I authorize the (\w+) model/) do |model_name| @model = Eaco::Cucumber::ActiveRecord.const_get(model_name) Eaco::DSL.authorize @model, using: :pg_jsonb end Then(/I should be able to set an ACL on it/) do instance = @model.new instance.acl = {foo: :bar} instance.save! instance = @model.find(instance.id) instance.acl == {foo: :bar} && instance.acl.class.kind_of?(Eaco::ACL) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eaco-0.5.0 | features/step_definitions/resource_authorization.rb |