Sha256: 28a49a821648fa9c1932af9df795b53f6dc5549e8095e1a44dee51569c04b039
Contents?: true
Size: 530 Bytes
Versions: 11
Compression:
Stored size: 530 Bytes
Contents
require 'rails_helper' RSpec.describe Spree::PermissionSets::DashboardDisplay 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(:admin, :dashboards) } it { is_expected.to be_able_to(:home, :dashboards) } end context "when not activated" do it { is_expected.not_to be_able_to(:admin, :dashboards) } it { is_expected.not_to be_able_to(:home, :dashboards) } end end
Version data entries
11 entries across 11 versions & 1 rubygems