Sha256: 7a27ff606231b213a58383e1a9bb749052e0b71ca2f832dc734487cacbea3d85

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'

class TestController < ActionController::Base; end

RSpec.describe TestController, type: :controller do
  render_views

  describe '#render_component' do
    controller do
      def index
        render_component
      end
    end

    it 'renders the application layout' do
      get :index, no_prerender: true
      expect(response).to render_template(layout: :application)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reactive-ruby-0.7.27 spec/controller_helper_spec.rb
reactive-ruby-0.7.26 spec/controller_helper_spec.rb
reactive-ruby-0.7.25 spec/controller_helper_spec.rb
reactive-ruby-0.7.24 spec/controller_helper_spec.rb
reactive-ruby-0.7.23 spec/controller_helper_spec.rb