spec/ramaze/template/nagoro.rb in ramaze-0.2.1 vs spec/ramaze/template/nagoro.rb in ramaze-0.3.0
- old
+ new
@@ -1,10 +1,10 @@
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.
require 'spec/helper'
-testcase_requires 'nagoro'
+spec_require 'nagoro'
class TCTemplateNagoroController < Ramaze::Controller
map :/
template_root __DIR__/:nagoro
engine :Nagoro
@@ -31,12 +31,11 @@
end
end
describe "Nagoro" do
- before(:all) do
- ramaze
- end
+ behaves_like 'http'
+ ramaze
it "hello world" do
get('/World').body.should == 'Hello, World!'
get('/You').body.should == 'Hello, You!'
end