Sha256: df66c2d3165a77126967c1846ec0220a22d13a1b128f725bfbe10015c9264ca2

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

require 'rails_helper'

RSpec.describe Cmor::Testimonials::ApplicationViewHelper, type: :view_helper do
  let(:testimonials) { create_list(:cmor_testimonials_testimonial, 3) }
  let(:category) { create(:cmor_testimonials_category, testimonials: testimonials) }
  let(:args) { [category.identifier, {}] }
  before(:each) do
    register_view_helper Markup::Rails::ApplicationViewHelper, as: :markup_helper
  end

  
  describe 'render_category' do
    it { expect(html).to have_css('div.cmor-testimonials-category') }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmor_testimonials-0.0.8.pre spec/view_helpers/cmor/testimonials/application_view_helper_spec.rb