Sha256: bb604ea9a476de90a6c0833f5b7da82b7864b3845fcc022993035000d358338d
Contents?: true
Size: 802 Bytes
Versions: 15
Compression:
Stored size: 802 Bytes
Contents
require 'spec_helper' describe "budget_types/index" do before(:each) do assign(:budget_types, [ stub_model(BudgetType, :name => "public_funds", :display_name => "Public funds", :note => "MyText", :position => 1 ), stub_model(BudgetType, :name => "donation", :display_name => "Donation", :note => "MyText", :position => 2 ) ]) end it "renders a list of budget_types" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "Public funds".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 => 2 end end
Version data entries
15 entries across 15 versions & 1 rubygems