Sha256: b865a3a22db51246a960c22b2531d9d18853b5c87ee031592b75f9fd8852e5f6
Contents?: true
Size: 678 Bytes
Versions: 13
Compression:
Stored size: 678 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Spree::PermissionSets::ReportDisplay 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(:display, :reports) } it { is_expected.to be_able_to(:admin, :reports) } it { is_expected.to be_able_to(:sales_total, :reports) } end context "when not activated" do it { is_expected.not_to be_able_to(:display, :reports) } it { is_expected.not_to be_able_to(:admin, :reports) } it { is_expected.not_to be_able_to(:sales_total, :reports) } end end
Version data entries
13 entries across 13 versions & 1 rubygems