Sha256: 4912c33ec39002d8d28b69fdad2907478ffec10cd335a07ff80c82fa00dfaf3d

Contents?: true

Size: 243 Bytes

Versions: 10

Compression:

Stored size: 243 Bytes

Contents

require 'spec_helper'

describe ErrorsController do
  render_views

  context "referenced section doesn't exist" do
    it 'throws an exception' do
      expect { get :missing_section; puts response.body }.to raise_error
    end
  end

end



Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sections_rails-0.11.0 spec/controllers/errors_controller_spec.rb
sections_rails-0.10.0 spec/controllers/errors_controller_spec.rb
sections_rails-0.9.0 spec/controllers/errors_controller_spec.rb
sections_rails-0.8.1 spec/controllers/errors_controller_spec.rb
sections_rails-0.8.0 spec/controllers/errors_controller_spec.rb
sections_rails-0.7.2 spec/controllers/errors_controller_spec.rb
sections_rails-0.7.1 spec/controllers/errors_controller_spec.rb
sections_rails-0.7.0 spec/controllers/errors_controller_spec.rb
sections_rails-0.6.12 spec/controllers/errors_controller_spec.rb
sections_rails-0.6.11 spec/controllers/errors_controller_spec.rb