Skip to content

Commit

Permalink
Fixing a typo for when a spec does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
haroon-sheikh committed Jun 28, 2022
1 parent 9bd0391 commit f1020e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/fileUtils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

"github.com/getgauge/gauge/config"
"github.com/getgauge/gauge/env"
. "gopkg.in/check.v1"
)

func Test(t *testing.T) { TestingT(t) }
Expand Down Expand Up @@ -233,7 +234,7 @@ func (s *MySuite) TestGetPathToFileInGaugeDataDir(c *C) {
var path string
config.ProjectRoot = "PROJECT_ROOT"
oldGaugeDataDirFn := env.GaugeDataDir
defer func(fn func() string) { env.GaugeDataDir = fn }(oldGaugeDataDirFn)
defer func(fn func() string) {env.GaugeDataDir = fn }(oldGaugeDataDirFn)
env.GaugeDataDir = func() string { return "foo" }

absPath, _ := filepath.Abs("foo.csv")
Expand All @@ -245,7 +246,7 @@ func (s *MySuite) TestGetPathToAbsFileWithGaugeDataDir(c *C) {
var path string
config.ProjectRoot = "PROJECT_ROOT"
oldGaugeDataDirFn := env.GaugeDataDir
defer func(fn func() string) { env.GaugeDataDir = fn }(oldGaugeDataDirFn)
defer func(fn func() string ) {env.GaugeDataDir = fn }(oldGaugeDataDirFn)
env.GaugeDataDir = func() string { return "foo" }

path = GetPathToFile("foo.csv")
Expand Down

0 comments on commit f1020e0

Please sign in to comment.