Sha256: 6ddcdd0ef797a9143844abb5cfb7ff438e7f774a8b3b9883874c77b3b41cf4c8

Contents?: true

Size: 565 Bytes

Versions: 10

Compression:

Stored size: 565 Bytes

Contents

require 'spec_helper'

describe "articles/edit" do
  before(:each) do
    @article = assign(:article, stub_model(Article,
      :name => "MyString",
      :body => "MyText"
    ))
  end

  it "renders the edit article form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => articles_path(@article), :method => "post" do
      assert_select "input#article_name", :name => "article[name]"
      assert_select "textarea#article_body", :name => "article[body]"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuztuscms-0.0.10 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/articles/edit.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/articles/edit.html.erb_spec.rb