<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,12 +1,12 @@
 require File.dirname(__FILE__) + '/spec_helper'
 
-describe HTTPStatus::Base do
-  before(:each) do
+describe HTTPStatus::Base, 'class inheritance' do
+  before(:all) do
     ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE.stub!(:has_key?).with(:testing_status).and_return(true)
     @status_exception_class = HTTPStatus::TestingStatus
   end
 
-  after(:each) do
+  after(:all) do
     HTTPStatus::Base.template_path = 'shared/http_status'
     HTTPStatus.send :remove_const, 'TestingStatus'
   end
@@ -15,6 +15,10 @@ describe HTTPStatus::Base do
     @status_exception_class.status.should == :testing_status
   end
 
+  it &quot;should use 'shared/http_status' as default view path&quot; do
+    @status_exception_class.template.should == 'shared/http_status/testing_status'
+  end
+
   it &quot;should check ActionController's status code list for the status code based on the class name&quot; do
     ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE.should_receive(:[]).with(:testing_status)
     @status_exception_class.status_code
@@ -86,7 +90,7 @@ describe 'HTTPStatus#http_status_exception' do
   end
 
   it &quot;should call head with the correct status code if render cannot found a template&quot; do
-    @controller.stub!(:render).and_raise(ActionView::MissingTemplate.new([], 'template.htm.erb'))
+    @controller.stub!(:render).and_raise(ActionView::MissingTemplate.new([], 'template.html.erb'))
     @controller.should_receive(:head).with(:internal_server_error)
     @controller.http_status_exception(HTTPStatus::Base.new('test'))
   end</diff>
      <filename>spec/http_status_exception_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>acd8f7426b784ce84bdb8ca3eba283cada1074c5</id>
    </parent>
  </parents>
  <author>
    <name>Willem van Bergen</name>
    <email>willem@vanbergen.org</email>
  </author>
  <url>http://github.com/wvanbergen/http_status_exceptions/commit/1a36eee0d01df746ddbe3d56f9e2b0ca01afd62b</url>
  <id>1a36eee0d01df746ddbe3d56f9e2b0ca01afd62b</id>
  <committed-date>2009-10-01T19:38:39-07:00</committed-date>
  <authored-date>2009-10-01T19:38:39-07:00</authored-date>
  <message>Improved specs</message>
  <tree>70c38cbd1afb8209bce031e2d4c45bc4fb5d3312</tree>
  <committer>
    <name>Willem van Bergen</name>
    <email>willem@vanbergen.org</email>
  </committer>
</commit>
