Sha256: 303411e2d2d33fb1d9aa5e3003e0adf12d3427b9959792b58299490782159488

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'

describe "task_types/new" do
  before(:each) do
    assign(:task_type, stub_model(TaskType,
      :name => "MyString"
    ).as_new_record)
  end

  it "renders new task_type form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => task_types_path, :method => "post" do
      assert_select "input#task_type_name", :name => "task_type[name]"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 spec/views/task_types/new.html.erb_spec.rb
guara-0.0.1.rc spec/views/task_types/new.html.erb_spec.rb