Skip to content

Commit

Permalink
Refactor improve var name
Browse files Browse the repository at this point in the history
'dir' makes more sense now using Exercise.NewExerciseFromDir
  • Loading branch information
jdsutherland committed Aug 30, 2018
1 parent 5d4e34b commit 52b7405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ func TestDownload(t *testing.T) {
targetDir := filepath.Join(tmpDir, tc.expectedDir)
assertDownloadedCorrectFiles(t, targetDir)

path := filepath.Join(targetDir, "bogus-track", "bogus-exercise")
b, err := ioutil.ReadFile(workspace.NewExerciseFromDir(path).MetadataFilepath())
dir := filepath.Join(targetDir, "bogus-track", "bogus-exercise")
b, err := ioutil.ReadFile(workspace.NewExerciseFromDir(dir).MetadataFilepath())
var s workspace.Solution
err = json.Unmarshal(b, &s)
assert.NoError(t, err)
Expand Down

0 comments on commit 52b7405

Please sign in to comment.