Sha256: a7cc4aea2255ffc39aaf7d6a2b72db393cdc835b79012e690b35101a81797c63
Contents?: true
Size: 896 Bytes
Versions: 3
Compression:
Stored size: 896 Bytes
Contents
require 'spec_helper' describe "checkout_types/index" do fixtures :users, :roles, :user_has_roles before(:each) do view.extend EnjuLeaf::EnjuLeafHelper assign(:checkout_types, Kaminari::paginate_array([ stub_model(CheckoutType, :name => "book", :display_name => "Book", :note => "MyText", :position => 1 ), stub_model(CheckoutType, :name => "cd", :display_name => "CD", :note => "MyText", :position => 2 ) ]).page(1)) end it "renders a list of checkout_types" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "Book".to_s, :count => 1 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "MyText".to_s, :count => 0 end end
Version data entries
3 entries across 3 versions & 1 rubygems