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

Version Path
sapience-1.0.11 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.10 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.9 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.8 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.7 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.6 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.5 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.4 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.3 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.2 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.1 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-1.0.0 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.18 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.17 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.16 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.15 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.14 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.13 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.12 test_apps/rails/spec/views/posts/show.html.slim_spec.rb
sapience-0.2.11 test_apps/rails/spec/views/posts/show.html.slim_spec.rb