Changed the create_test.go accordingly
This commit is contained in:
parent
df2b19567b
commit
7f2bbf20cc
1 changed files with 4 additions and 4 deletions
|
|
@ -187,7 +187,7 @@ func Test_createRun(t *testing.T) {
|
|||
Filenames: []string{fixtureFile},
|
||||
},
|
||||
wantOut: "https://gist.github.com/aa5a315d61ae9438b18d\n",
|
||||
wantStderr: "- Creating gist fixture.txt\n✓ Created gist fixture.txt\n",
|
||||
wantStderr: "- Creating gist fixture.txt\n✓ Created public gist fixture.txt\n",
|
||||
wantErr: false,
|
||||
wantParams: map[string]interface{}{
|
||||
"description": "",
|
||||
|
|
@ -208,7 +208,7 @@ func Test_createRun(t *testing.T) {
|
|||
Filenames: []string{fixtureFile},
|
||||
},
|
||||
wantOut: "https://gist.github.com/aa5a315d61ae9438b18d\n",
|
||||
wantStderr: "- Creating gist fixture.txt\n✓ Created gist fixture.txt\n",
|
||||
wantStderr: "- Creating gist fixture.txt\n✓ Created secret gist fixture.txt\n",
|
||||
wantErr: false,
|
||||
wantParams: map[string]interface{}{
|
||||
"description": "an incredibly interesting gist",
|
||||
|
|
@ -229,7 +229,7 @@ func Test_createRun(t *testing.T) {
|
|||
},
|
||||
stdin: "cool stdin content",
|
||||
wantOut: "https://gist.github.com/aa5a315d61ae9438b18d\n",
|
||||
wantStderr: "- Creating gist with multiple files\n✓ Created gist fixture.txt\n",
|
||||
wantStderr: "- Creating gist with multiple files\n✓ Created secret gist fixture.txt\n",
|
||||
wantErr: false,
|
||||
wantParams: map[string]interface{}{
|
||||
"description": "",
|
||||
|
|
@ -295,7 +295,7 @@ func Test_createRun(t *testing.T) {
|
|||
Filenames: []string{fixtureFile},
|
||||
},
|
||||
wantOut: "Opening gist.github.com/aa5a315d61ae9438b18d in your browser.\n",
|
||||
wantStderr: "- Creating gist fixture.txt\n✓ Created gist fixture.txt\n",
|
||||
wantStderr: "- Creating gist fixture.txt\n✓ Created secret gist fixture.txt\n",
|
||||
wantErr: false,
|
||||
wantBrowse: "https://gist.github.com/aa5a315d61ae9438b18d",
|
||||
wantParams: map[string]interface{}{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue