Sha256: 2d2c83725b10f6f89b987eef4f1bb3cf25610700b94bc3ace84cc94b1210afa4
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
require 'rails_helper' RSpec.describe HomeController, :type => :controller do render_views it { is_expected.to respond_to(:content_for) } it 'shows the new yield' do get :index expect(controller.view_context.content_for(:page_title)).to eq('this is title') end it 'should contain the page_tile' do get :index expect(response.body).to match /this is title/im end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
content_for_rails-1.0.0 | spec/controllers/home_controller_spec.rb |