Sha256: ee6a7db1ce0f5689fb3392965547a311601471d75ce41031755fd9ddc25c8467

Contents?: true

Size: 595 Bytes

Versions: 21

Compression:

Stored size: 595 Bytes

Contents

require 'spec_helper'

describe "accepts/index" do
  before(:each) do
    assign(:accepts, [
      stub_model(Accept,
        :item_id => 1,
        :created_at => Time.zone.now
      ),
      stub_model(Accept,
        :item_id => 1,
        :created_at => Time.zone.now
      )
    ].paginate(:page => 1))
    basket = FactoryGirl.create(:basket)
    assign(:basket, basket)
    assign(:accept, basket.accepts.new)
  end

  it "renders a list of accepts" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td"
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_circulation-0.0.71 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.70 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.69 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.68 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.67 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.66 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.65 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.64 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.63 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.62 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.61 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.60 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.59 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.58 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.57 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.56 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.55 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.54 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.53 spec/views/accepts/index.html.erb_spec.rb
enju_circulation-0.0.52 spec/views/accepts/index.html.erb_spec.rb