Sha256: 9552c4498efd8fdcf59bff0ddb9fe51a91d01b562048a5f858858df514cce052

Contents?: true

Size: 365 Bytes

Versions: 39

Compression:

Stored size: 365 Bytes

Contents

require 'spec_helper'
require 'spree/testing_support/factories/role_factory'

RSpec.describe 'role factory' do
  let(:factory_class) { Spree::Role }

  describe 'plain role' do
    let(:factory) { :role }

    it_behaves_like 'a working factory'
  end

  describe 'admin role' do
    let(:factory) { :admin_role }

    it_behaves_like 'a working factory'
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
solidus_core-2.3.1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.2.2 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.1.1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.0.3 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-1.4.2 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-1.3.2 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-1.2.3 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.3.0 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.3.0.rc3 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.3.0.rc2 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.3.0.rc1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.3.0.beta1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.0.2 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-1.4.1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.2.1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.2.0 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.2.0.rc1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.2.0.beta1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.1.0 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.1.0.rc1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb