Sha256: 528a439516da78995d7572be2250a933082f2b0cab3f04d12357510ec7528491
Contents?: true
Size: 695 Bytes
Versions: 5
Compression:
Stored size: 695 Bytes
Contents
require 'spec_helper' describe Spree::PermissionSets::StockManagement do let(:ability) { DummyAbility.new } subject { ability } context "when activated" do before do described_class.new(ability).activate! end it { is_expected.to be_able_to(:manage, Spree::StockItem) } it { is_expected.to be_able_to(:manage, Spree::StockTransfer) } it { is_expected.to be_able_to(:manage, Spree::TransferItem) } end context "when not activated" do it { is_expected.not_to be_able_to(:manage, Spree::StockItem) } it { is_expected.not_to be_able_to(:manage, Spree::StockTransfer) } it { is_expected.not_to be_able_to(:manage, Spree::TransferItem) } end end
Version data entries
5 entries across 5 versions & 1 rubygems