jirafe 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jirafe/dashboard.rb +1 -0
- data/lib/jirafe/version.rb +1 -1
- data/spec/jirafe/dashboard_spec.rb +2 -2
- metadata +1 -1
data/lib/jirafe/dashboard.rb
CHANGED
@@ -14,6 +14,7 @@ module Jirafe
|
|
14
14
|
target_id = options[:target_id] || "jirafe"
|
15
15
|
error_id = options[:error_id] || "messages"
|
16
16
|
error_html = options[:error_html] || default_error_html
|
17
|
+
error_html = error_html.gsub(/"/, "\\\"").split("\n").join("")
|
17
18
|
timeout = options[:timeout] || 10000
|
18
19
|
|
19
20
|
<<-HTML
|
data/lib/jirafe/version.rb
CHANGED
@@ -23,7 +23,7 @@ describe Jirafe::Dashboard do
|
|
23
23
|
let(:app_id) { 123 }
|
24
24
|
let(:version) { "myplatform-v1.0.1" }
|
25
25
|
let(:locale) { Jirafe::LOCALES[:english] }
|
26
|
-
let(:options) { { :error_html =>
|
26
|
+
let(:options) { { :error_html => %{myerror <contains some="html" />} } }
|
27
27
|
|
28
28
|
let(:expected_html) do
|
29
29
|
<<-HTML
|
@@ -36,7 +36,7 @@ describe Jirafe::Dashboard do
|
|
36
36
|
locale: 'en_US' });
|
37
37
|
setTimeout(function() {
|
38
38
|
if ($('mod-jirafe') == undefined) {
|
39
|
-
$('messages').insert ("myerror");
|
39
|
+
$('messages').insert ("myerror <contains some=\\\"html\\\" />");
|
40
40
|
}
|
41
41
|
}, 10000);
|
42
42
|
</script>
|