spec/cream/helper/host_spec.rb in cream-0.7.3 vs spec/cream/helper/host_spec.rb in cream-0.7.5

- old
+ new

@@ -9,11 +9,11 @@ describe '#localhost?' do it "should return true if request.host is 'localhost'" do request = stub() request.stubs(:host).returns 'localhost' - with_engine do |e, view| + view_engine do |e, view| view.stubs(:request).returns request res = e.run_template do %{<%= localhost? %> } end @@ -23,11 +23,11 @@ it "should return true if request.host is '127.0.0.1'" do request = stub() request.stubs(:host).returns '127.0.0.1' - with_engine do |e, view| + view_engine do |e, view| view.stubs(:request).returns request res = e.run_template do %{<%= localhost? %> } end @@ -39,11 +39,11 @@ describe '#publichost?' do it "should return false if request.host is 'localhost'" do request = stub() request.stubs(:host).returns 'localhost' - with_engine do |e, view| + view_engine do |e, view| view.stubs(:request).returns request res = e.run_template do %{<%= publichost? %> } end @@ -53,10 +53,10 @@ it "should return true if request.host is '214.353.343.222'" do request = stub() request.stubs(:host).returns '214.353.343.222' - with_engine do |e, view| + view_engine do |e, view| view.stubs(:request).returns request res = e.run_template do %{<%= publichost? %> } end