Sha256: ca2c1453f1232eb5c98fb0d6d49c429f9aaedc00c7b28b1ad85d8f59cec8981c

Contents?: true

Size: 552 Bytes

Versions: 10

Compression:

Stored size: 552 Bytes

Contents

require 'spec_helper'

describe "layouts/new" do
  before(:each) do
    assign(:layout, stub_model(Layout,
      :name => "MyString",
      :content => "MyText"
    ).as_new_record)
  end

  it "renders new layout form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => layouts_path, :method => "post" do
      assert_select "input#layout_name", :name => "layout[name]"
      assert_select "textarea#layout_content", :name => "layout[content]"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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