Sha256: f42637ea733b01bc3604c2a53fb57f307b526420c80d8a39b4717a4d11c59e0c

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

require 'spec_helper'

describe "posts/edit" do
  before(:each) do
    @post = assign(:post, stub_model(Post,
      :title => "MyString",
      :body => "MyString"
    ))
  end

  it "renders the edit post form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => posts_path(@post), :method => "post" do
      assert_select "input#post_title", :name => "post[title]"
      assert_select "input#post_body", :name => "post[body]"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ampere-1.2.3 example/spec/views/posts/edit.html.erb_spec.rb
ampere-1.2.2 example/spec/views/posts/edit.html.erb_spec.rb
ampere-1.2.1 example/spec/views/posts/edit.html.erb_spec.rb
ampere-1.2.0 example/spec/views/posts/edit.html.erb_spec.rb