Sha256: 5312057adc7223055674f84d4e968e863fc7325772fc46b1902f65d9793a2b5c

Contents?: true

Size: 409 Bytes

Versions: 15

Compression:

Stored size: 409 Bytes

Contents

require 'rails_helper'

RSpec.describe "categories/edit", :type => :view do
  before(:each) do
    @category = assign(:category, Category.create!(
      :name => "MyString"
    ))
  end

  it "renders the edit category form" do
    render

    assert_select "form[action=?][method=?]", category_path(@category), "post" do

      assert_select "input#category_name[name=?]", "category[name]"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.3.1 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.3.0 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.2.6 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.2.5 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.2.4 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.2.3 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.2.2 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.2.1 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.2 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.1 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.0.4 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.0.3 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.0.2 examples/store-api/spec/views/categories/edit.html.erb_spec.rb
restspec-0.0.1 examples/store-api/spec/views/categories/edit.html.erb_spec.rb