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