Sha256: c8fb6eae68c88fe7423bbe2c0d51cff3b9f17d7311c379493f23dc07cdf9bbb3

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'

describe "other_items/index" do
  before(:each) do
    assign(:other_items, [
      stub_model(OtherItem,
        :title => "Title",
        :sequence => 1
      ),
      stub_model(OtherItem,
        :title => "Title",
        :sequence => 1
      )
    ])
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_sortable-0.0.5 spec/dummy/spec/views/other_items/index.html.erb_spec.rb