Skip to content

Commit

Permalink
fixing interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcorbyeaglen committed Jan 24, 2018
1 parent 2cd133b commit 79c73e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

var jsonString string
var underTest *jsonspec.TestOutputGenerator
var underTest generator.GoGivensOutputGenerator

func init() {
underTest = jsonspec.NewTestOutputGenerator()
Expand Down Expand Up @@ -75,7 +75,7 @@ func TestTestOutputGenerator_GenerateConcurrently(testing *testing.T) {
}

func TestTestOutputGenerator_FileExtension(t *testing.T) {
AssertThat(t, underTest.FileExtension(), is.EqualTo("text/json"))
AssertThat(t, underTest.ContentType(), is.EqualTo("text/json"))
}

func TestTestOutputGenerator_Panics(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion jsongenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewTestOutputGenerator() *TestOutputGenerator {
}

// FileExtension for the output generated.
func (outputGenerator *TestOutputGenerator) FileExtension() string {
func (outputGenerator *TestOutputGenerator) ContentType() string {
return "text/json"
}

Expand Down

0 comments on commit 79c73e8

Please sign in to comment.