Sha256: 6759afe818f0493eff37705f1431227d4659c3257238cb31aafd2ce22ed891aa

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

require 'spec_helper'

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

  it "renders the edit 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(@task_type), :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/edit.html.erb_spec.rb
guara-0.0.1.rc spec/views/task_types/edit.html.erb_spec.rb