Module: Pharrell::Integration::RSpec

Defined in:
lib/pharrell/integration/rspec.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.configure(config_name, rspec_config) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/pharrell/integration/rspec.rb', line 4

def self.configure(config_name, rspec_config)
  rspec_config.include(Pharrell::Injectable)
  rspec_config.include(Pharrell::Integration::RSpec)

  rspec_config.before(:each) do
    Pharrell.use_config(config_name)
  end
end

.included(base) ⇒ Object



13
14
15
# File 'lib/pharrell/integration/rspec.rb', line 13

def self.included(base)
  base.extend(ClassMethods)
end