Sha256: 201d24a877ea802afd06c733e6d6111aafea32da4df6d550d3e7ee41ab6398d6

Contents?: true

Size: 608 Bytes

Versions: 15

Compression:

Stored size: 608 Bytes

Contents

require 'spec_helper'

describe "accepts/index" do
  before(:each) do
    assign(:accepts, Kaminari::paginate_array([
      stub_model(Accept,
        :item_id => 1,
        :created_at => Time.zone.now
      ),
      stub_model(Accept,
        :item_id => 1,
        :created_at => Time.zone.now
      )
    ]).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

15 entries across 15 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre15 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre14 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre13 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre12 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre11 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre10 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre9 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre8 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre7 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre6 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre5 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre4 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre3 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre2 spec/views/accepts/index.html.erb_spec.rb
enju_biblio-0.1.0.pre spec/views/accepts/index.html.erb_spec.rb