Sha256: 988a9baac284fa8e5aeb4272075571ffeb06bfdb4b9db5dc53d04378f06197ba
Contents?: true
Size: 561 Bytes
Versions: 48
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true 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
48 entries across 48 versions & 2 rubygems