Sha256: d2521cfd217f05701b986428207ac3d3cb99e5657ef64076962dc240f7923a23

Contents?: true

Size: 430 Bytes

Versions: 16

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'

if ruby?
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
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
reactrb-0.8.1 spec/controller_helper_spec.rb
reactrb-0.8.0 spec/controller_helper_spec.rb
reactrb-0.7.42 spec/controller_helper_spec.rb
reactive-ruby-0.7.41 spec/controller_helper_spec.rb
reactive-ruby-0.7.40 spec/controller_helper_spec.rb
reactive-ruby-0.7.39 spec/controller_helper_spec.rb
reactive-ruby-0.7.38 spec/controller_helper_spec.rb
reactive-ruby-0.7.36 spec/controller_helper_spec.rb
reactive-ruby-0.7.35 spec/controller_helper_spec.rb
reactive-ruby-0.7.34 spec/controller_helper_spec.rb
reactive-ruby-0.7.33 spec/controller_helper_spec.rb
reactive-ruby-0.7.32 spec/controller_helper_spec.rb
reactive-ruby-0.7.31 spec/controller_helper_spec.rb
reactive-ruby-0.7.30 spec/controller_helper_spec.rb
reactive-ruby-0.7.29 spec/controller_helper_spec.rb
reactive-ruby-0.7.28 spec/controller_helper_spec.rb