diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-07 15:37:28 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-07 15:37:35 +0200 |
commit | a52cf1d675054d5fea7c8025d60a3aa7e9308369 (patch) | |
tree | c5c010f6b98b2a6114913a3bcc503d51fc62e7bf /sonar-server/src/test | |
parent | e529bfafb0beea80cd005998f7fc0ea97916ae3d (diff) | |
download | sonarqube-a52cf1d675054d5fea7c8025d60a3aa7e9308369.tar.gz sonarqube-a52cf1d675054d5fea7c8025d60a3aa7e9308369.zip |
SONAR-4253 Use Coding Rules permalink for RuleMacro instead of old Rails modal
Diffstat (limited to 'sonar-server/src/test')
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/text/MacroInterpreterTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/text/MacroInterpreterTest.java b/sonar-server/src/test/java/org/sonar/server/text/MacroInterpreterTest.java index b993dbfd058..3579c90964c 100644 --- a/sonar-server/src/test/java/org/sonar/server/text/MacroInterpreterTest.java +++ b/sonar-server/src/test/java/org/sonar/server/text/MacroInterpreterTest.java @@ -52,7 +52,7 @@ public class MacroInterpreterTest { String ruleKey = "repo:key"; String origin = "See {rule:" + ruleKey + "} for detail."; String result = interpreter.interpret(origin); - assertThat(result).isEqualTo("See <a class='open-modal rule-modal' modal-width='800' href='" + path + "/rules/show/" + ruleKey + "?modal=true&layout=false'>key</a> for detail."); + assertThat(result).isEqualTo("See <a href='" + path + "/coding_rules#rule_key=" + ruleKey + "'>key</a> for detail."); } @Test @@ -60,6 +60,6 @@ public class MacroInterpreterTest { String ruleKey = "my-repo1:my-key1"; String origin = "See {rule:" + ruleKey + "} for detail."; String result = interpreter.interpret(origin); - assertThat(result).isEqualTo("See <a class='open-modal rule-modal' modal-width='800' href='" + path + "/rules/show/" + ruleKey + "?modal=true&layout=false'>my-key1</a> for detail."); + assertThat(result).isEqualTo("See <a href='" + path + "/coding_rules#rule_key=" + ruleKey + "'>my-key1</a> for detail."); } } |