Sha256: 0e0711b56456bc0622987aea6a024d9fcc14e8be1e77b5fba99f4bc1db7de7f7

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacRailsGemSupport
  module Rspec
    module Setup
      extend ::ActiveSupport::Concern
      require_sub __FILE__, include_modules: true

      def self.extended(obj)
        obj.singleton_class.include(::EacRubyUtils::SimpleCache)
        obj.setup_rails_env
        return unless obj.setup_rails_app

        obj.setup_fixtures
        obj.setup_capybara
        obj.setup_factory_bot
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eac_rails_gem_support-0.4.1 lib/eac_rails_gem_support/rspec/setup.rb
eac_rails_gem_support-0.4.0 lib/eac_rails_gem_support/rspec/setup.rb
eac_rails_gem_support-0.3.0 lib/eac_rails_gem_support/rspec/setup.rb
eac_rails_gem_support-0.2.0 lib/eac_rails_gem_support/rspec/setup.rb