Sha256: 6b9a035538dca7116cd2d4bc2d401f7e44b441a148dfcf1db53d950d00f530b6
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
require 'spec_helper' describe Spree::PermissionSets::LegacyReturnAuthorizationDisplay do let(:ability) { Spree::Ability.new nil } subject { ability } context "when activated" do before do described_class.new(ability).activate! end it { should be_able_to(:display, Spree::LegacyReturnAuthorization) } it { should be_able_to(:admin, Spree::LegacyReturnAuthorization) } end context "when not activated" do it { should_not be_able_to(:display, Spree::LegacyReturnAuthorization) } it { should_not be_able_to(:admin, Spree::LegacyReturnAuthorization) } end end
Version data entries
3 entries across 3 versions & 1 rubygems