Sha256: a344814722bfb3352fbafa1660c5a3db4c08272c63182e3480843c6c25b145ce
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
require 'spec_helper' describe Gaffe::Errors do describe :Actions do describe :show do let(:request) { ActionDispatch::TestRequest.new } let(:env) { request.env.merge 'action_dispatch.exception' => exception } let(:exception) { ActionController::RoutingError.new(:foo) } let(:response) { Gaffe.errors_controller_for_request(env).action(:show).call(env) } subject { response.last } its(:status) { should eql 404 } its(:body) { should match /Not Found/ } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gaffe-0.2 | spec/gaffe/errors_spec.rb |