Method: Spec::Runner::Options#parse_example
- Defined in:
- lib/spec/runner/options.rb
#parse_example(example) ⇒ Object
215 216 217 218 219 220 221 |
# File 'lib/spec/runner/options.rb', line 215 def parse_example(example) if(File.file?(example)) @examples = [File.open(example).read.split("\n")].flatten else @examples = [example] end end |