Sha256: f7d3ccccb52a50ccac6ef6ba7c5988ec3900ec4feb9358ae4ac79bd65261d7d3

Contents?: true

Size: 450 Bytes

Versions: 26

Compression:

Stored size: 450 Bytes

Contents

require "rails_helper"

RSpec.describe "posts/edit", type: :view do
  let(:post) { create(:post, title: "Title", body: "Body") }
  before(:each) do
    @post = assign(:post, post)
  end

  it "renders the edit post form" do
    render

    assert_select "form[action=?][method=?]", post_path(@post), "post" do
      assert_select "input#post_title[name=?]", "post[title]"
      assert_select "input#post_body[name=?]", "post[body]"
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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