Sha256: c09d5524ebcdc74b2c193245c05d1f7573f00570cbc7d5f7612f1812fdc938a2
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe "posts/edit.html.erb" do before(:each) do @post = assign(:post, stub_model(Post, :new_record? => false, :title => "MyString", :body => "MyText" )) end it "renders the edit post form" do render rendered.should have_selector("form", :action => post_path(@post), :method => "post") do |form| form.should have_selector("input#post_title", :name => "post[title]") form.should have_selector("textarea#post_body", :name => "post[body]") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bobby-0.0.4 | spec/views/posts/edit.html.erb_spec.rb |
bobby-0.0.3 | spec/views/posts/edit.html.erb_spec.rb |