Skip to content

Commit

Permalink
Merge pull request spring-projects#3064 from izeye/patch-13
Browse files Browse the repository at this point in the history
* patch-13:
  Fix redudant assertion in test
  • Loading branch information
snicoll committed May 29, 2015
2 parents c6ff911 + 8f0fd21 commit 4c54647
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 4c54647

Please sign in to comment.