Sha256: f59c3e150721cb586e56357bdaea6a3e93a69e8a57957508b5168f2ee6c29216

Contents?: true

Size: 397 Bytes

Versions: 48

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require 'rails_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

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core_devise_token_auth-2.8.0.alpha.4 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.3 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core_devise_token_auth-2.8.0.alpha.0 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.7.0 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.6.1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.6.0 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb
solidus_core-2.6.0.rc1 spec/lib/spree/core/testing_support/factories/role_factory_spec.rb