Sha256: 63276d3ade8cc7d816b3e4b95410e85a7d84731bcfd63224d400af8279fc4f16
Contents?: true
Size: 802 Bytes
Versions: 34
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
34 entries across 34 versions & 1 rubygems