spec/ramaze/view.rb in Pistos-ramaze-2009.04.08 vs spec/ramaze/view.rb in Pistos-ramaze-2009.06.12

- old
+ new

@@ -1,9 +1,9 @@ # Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. -require 'spec/helper' +require File.expand_path('../../../spec/helper', __FILE__) module Ramaze module View module MyEngine def self.call(action, string) @@ -23,10 +23,10 @@ 'Hello, World!' end end describe Ramaze::View do - behaves_like :mock + behaves_like :rack_test it 'uses MyEngine' do got = get('/') got.status.should == 200 got['Content-Type'].should == 'application/x-ruby'