Sha256: d4ea520cbfd497b04a23298ba53b5403acad867e116fd5ad9cee1f6f401c9825
Contents?: true
Size: 321 Bytes
Versions: 26
Compression:
Stored size: 321 Bytes
Contents
require "rails_helper" RSpec.describe "posts/show", type: :view do let(:post) { create(:post, title: "Title", body: "Body") } before(:each) do @post = assign(:post, post) end it "renders attributes in <p>" do render expect(rendered).to match(/Title/) expect(rendered).to match(/Body/) end end
Version data entries
26 entries across 26 versions & 1 rubygems