Sha256: cc4f0941873582ac5447ada0ea1bbeb9728f3dd93abc08d2fe21a2de25930579

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

require 'spec_helper'

describe "task_types/index" do
  before(:each) do
    assign(:task_types, [
      stub_model(TaskType,
        :name => "Name"
      ),
      stub_model(TaskType,
        :name => "Name"
      )
    ])
  end

  it "renders a list of task_types" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => "Name".to_s, :count => 2
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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