class Opal::RSpec::SprocketsEnvironment
Attributes
locator[R]
Public Class Methods
new(spec_pattern=nil, spec_exclude_pattern=nil, spec_files=nil, default_path=nil)
click to toggle source
Calls superclass method
# File lib/opal/rspec/sprockets_environment.rb, line 23 def initialize(spec_pattern=nil, spec_exclude_pattern=nil, spec_files=nil, default_path=nil) @locator = Opal::RSpec::Locator.new(pattern: spec_pattern, exclude_pattern: spec_exclude_pattern, files: spec_files, default_path: default_path) super() end
Public Instance Methods
add_spec_paths_to_sprockets()
click to toggle source
# File lib/opal/rspec/sprockets_environment.rb, line 30 def add_spec_paths_to_sprockets locator.get_spec_load_paths.each { |p| append_path p } end
cached()
click to toggle source
# File lib/opal/rspec/sprockets_environment.rb, line 34 def cached CachedEnvironment.new(self, @locator) end