From c84b94a647fb4c068e8be9d0495ff7284f41f168 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 17 Dec 2023 14:26:17 +0000 Subject: Initial --- spec/views/events/show.html.erb_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 spec/views/events/show.html.erb_spec.rb (limited to 'spec/views/events/show.html.erb_spec.rb') diff --git a/spec/views/events/show.html.erb_spec.rb b/spec/views/events/show.html.erb_spec.rb new file mode 100644 index 0000000..4c54a8b --- /dev/null +++ b/spec/views/events/show.html.erb_spec.rb @@ -0,0 +1,14 @@ +require 'rails_helper' + +RSpec.describe "events/show", type: :view do + before(:each) do + assign(:event, Event.create!( + name: "Name" + )) + end + + it "renders attributes in

" do + render + expect(rendered).to match(/Name/) + end +end -- cgit v1.2.3