Sha256: 9b53a11cf76841d5552532a3c4cdd946a74fb877a7a3546a23b0e27aad398782

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

require 'spec_helper'

describe "private_posts/edit" do
  before(:each) do
    @private_post = assign(:private_post, stub_model(PrivatePost,
      :title => "MyString",
      :body => "MyText"
    ))
  end

  it "renders the edit private_post form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form[action=?][method=?]", private_post_path(@private_post), "post" do
      assert_select "input#private_post_title[name=?]", "private_post[title]"
      assert_select "textarea#private_post_body[name=?]", "private_post[body]"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_token_authentication-1.2.0 spec/dummy/spec/views/private_posts/edit.html.erb_spec.rb