summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/data/view/node0/engines.haml2
-rw-r--r--spec/node_spec.rb4
-rw-r--r--spec/spec_helper.rb1
3 files changed, 4 insertions, 3 deletions
diff --git a/spec/data/view/node0/engines.haml b/spec/data/view/node0/engines.haml
index b9ea984..d35145e 100644
--- a/spec/data/view/node0/engines.haml
+++ b/spec/data/view/node0/engines.haml
@@ -1 +1 @@
-%h1="Hello world"
+%h1="Hello #{@name}"
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index fe1edfb..785da42 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -266,10 +266,10 @@ describe Zorglub do
it 'haml engine should work' do
Node0.app.opt! :engines_cache_enabled, false
r = Node0.my_call '/engines/haml'
- expect(r.body[0]).to eq "<h1>Hello world</h1>\n"
+ expect(r.body[0]).to eq "<h1>Hello <i>world</i></h1>\n"
Node0.app.opt! :engines_cache_enabled, true
r = Node0.my_call '/engines/haml'
- expect(r.body[0]).to eq "<h1>Hello world</h1>\n"
+ expect(r.body[0]).to eq "<h1>Hello <i>world</i></h1>\n"
end
it 'sass engine should work' do
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 257327e..079607b 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -112,6 +112,7 @@ class Node0 < Zorglub::Node
no_layout!
case name
when 'haml'
+ @name = '<i>world</i>'
engine! :haml
when 'sass'
engine! :sass