lib/minitest-vcr/spec.rb in minitest-vcr-1.2.0 vs lib/minitest-vcr/spec.rb in minitest-vcr-1.2.1
- old
+ new
@@ -23,15 +23,10 @@
end # Spec
module StringHelpers
def self.vcr_path(example_class_name, example, spec_name)
- # TODO Refactor! To tired but this is wack.
- @path = nil
-
- @path = prep example.class.name
-
- @path.push(spec_name).join("/") unless @path.nil?
+ prep(example.class.name).push(spec_name).join("/")
end
protected
def self.prep string