Sha256: 4140cd3b8f2aaa8287d6ee8cae3cedfeb3d19a61cfb0b19e4d094a374f1aef75
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
module SPV # Keeps a path to fixture and options which should be # passed to Vcr while inserting a cassette class Fixture attr_accessor :name, :options def initialize(name, vcr_options = {}) @name, @options = name, vcr_options end def add_path(path) self.name = path + name end def set_home_path(home_path) self.name = self.name.gsub(/\A\~\//, home_path) end def has_link_to_home_path? self.name[0..1] == '~/' end # Returns a name without a link to a home path def clean_name self.name[2..-1] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
site_prism.vcr-0.1.0 | lib/site_prism_vcr/fixture.rb |