Skip to content

Commit

Permalink
Fix redudant assertion in test
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and snicoll committed May 29, 2015
1 parent c6ff911 commit 8f0fd21
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ public void settingAllowedOriginsEnablesCors() throws Exception {
public void maxAgeDefaultsTo30Minutes() throws Exception {
EnvironmentTestUtils.addEnvironment(this.context,
"endpoints.cors.allowed-origins:foo.example.com");
createMockMvc().perform(
options("/beans").header("Origin", "bar.example.com").header(
HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD, "GET")).andExpect(
status().isForbidden());
performAcceptedCorsRequest().andExpect(
header().string(HttpHeaders.ACCESS_CONTROL_MAX_AGE, "1800"));
}
Expand Down

0 comments on commit 8f0fd21

Please sign in to comment.