Skip to content

Commit

Permalink
[SHIBUI-814]
Browse files Browse the repository at this point in the history
Corrected a broken test. I think.
  • Loading branch information
Bill Smith committed Sep 21, 2018
1 parent f365125 commit b2d779a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class InternationalizationMessagesControllerTests extends Specification {
' "some.test.message": "Je ne sais pas Francais."' +
'}'

def expectedDefaultResult =
'{' +
' "some.test.message": "This is the default message."' +
'}'

def "GET messages with no header or \"lang\" param defaults to returning english messages"() {
when:
def result = mockMvc.perform(
Expand Down Expand Up @@ -108,6 +113,6 @@ class InternationalizationMessagesControllerTests extends Specification {
.header("Accept-Language", "es"))

then:
result.andExpect(content().json(expectedEnglishResult))
result.andExpect(content().json(expectedDefaultResult))
}
}

0 comments on commit b2d779a

Please sign in to comment.