Sha256: fe99c6ed9d43dafe48f442d43d61451fea0e5c9ccb2ae2bd1eefe49b93d09fe3
Contents?: true
Size: 426 Bytes
Versions: 2
Compression:
Stored size: 426 Bytes
Contents
require 'spec_helper' RSpec.describe 'ddr/alerts/message/_alert_message.html.erb', type: :view do let(:msgs) { [ FactoryGirl.create(:message, message: "AAA"), FactoryGirl.create(:message, message: "BBB") ] } it "displays the messages" do render partial: 'ddr/alerts/message/alert_message.html.erb', locals: { alert_messages: msgs } expect(rendered).to match(/AAA/) expect(rendered).to match(/BBB/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddr-alerts-0.1.1 | spec/views/_alert_message.html.erb_spec.rb |
ddr-alerts-0.1.0 | spec/views/_alert_message.html.erb_spec.rb |