Method: Spec::Runner::Options#parse_diff
- Defined in:
- lib/spec/runner/options.rb
#parse_diff(format) ⇒ Object
201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/spec/runner/options.rb', line 201 def parse_diff(format) case format when :context, 'context', 'c' @diff_format = :context default_differ when :unified, 'unified', 'u', '', nil @diff_format = :unified default_differ else @diff_format = :custom self.differ_class = load_class(format, 'differ', '--diff') end end |