Class: JsSpec::Resources::SpecFileRunner

Inherits:
SpecRunner
  • Object
show all
Defined in:
lib/js_spec/resources/spec_file_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SpecRunner

#get

Constructor Details

#initialize(file) ⇒ SpecFileRunner

Returns a new instance of SpecFileRunner.



6
7
8
# File 'lib/js_spec/resources/spec_file_runner.rb', line 6

def initialize(file)
  @file = file
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



4
5
6
# File 'lib/js_spec/resources/spec_file_runner.rb', line 4

def file
  @file
end

Instance Method Details

#spec_filesObject



10
11
12
# File 'lib/js_spec/resources/spec_file_runner.rb', line 10

def spec_files
  [file]
end