Skip to content

Commit

Permalink
Save the cassettePath in thecassette object (#26)
Browse files Browse the repository at this point in the history
Otherwise, it would always fallback to the default cassette location, ignoring the VCR config.
  • Loading branch information
abourget authored and seborama committed Mar 3, 2017
1 parent a6f7d6e commit 11a5912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cassette.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func loadCassette(cassetteName, cassettePath string) (*cassette, error) {

// provide an empty cassette as a minimum
if k7 == nil {
k7 = &cassette{Name: cassetteName}
k7 = &cassette{Name: cassetteName, Path: cassettePath}
}

// initial stats
Expand Down

0 comments on commit 11a5912

Please sign in to comment.