Sha256: d57636a9a0189d8702393d088942d03acc5d5bc31213773c1186a9baac61633e
Contents?: true
Size: 537 Bytes
Versions: 10
Compression:
Stored size: 537 Bytes
Contents
require 'rails_helper' module BootstrapLeather RSpec.describe HeroUnitHelper, folder: :helpers do describe '#add_hero_unit' do before do helper.add_hero_unit { 'Yay!' } end subject { helper.content_for(:hero_unit) } it { should eq 'Yay!' } end describe '#render_hero_unit' do before do helper.content_for(:hero_unit) { 'Yay!' } end subject { helper.render_hero_unit } it { should have_tag 'div', with: { class: 'jumbotron' }, text: /Yay!/ } end end end
Version data entries
10 entries across 10 versions & 1 rubygems