Class: Specjour::RSpec::Preloader
- Inherits:
-
Object
- Object
- Specjour::RSpec::Preloader
- Defined in:
- lib/specjour/rspec/preloader.rb
Class Method Summary collapse
Class Method Details
.load(paths = []) ⇒ Object
2 3 4 5 |
# File 'lib/specjour/rspec/preloader.rb', line 2 def self.load(paths=[]) require './spec/spec_helper' load_spec_files paths end |
.load_spec_files(paths) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/specjour/rspec/preloader.rb', line 7 def self.load_spec_files(paths) = ::RSpec::Core::ConfigurationOptions.new(paths) . .configure ::RSpec.configuration ::RSpec.configuration.load_spec_files end |