require 'spec_helper' describe "selections/show" do before(:each) do @selection = assign(:selection, stub_model(Selection, :name => "Name", :parent_id => 1, :system_code => "System Code", :position => 1, :is_default => false, :is_system => false )) end it "renders attributes in

" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Name/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/1/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/System Code/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/1/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/false/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/false/) end end