Sha256: f1e6c29384290df4cdd0a62a1ede444ad4167e30eab220b749dfc11912732735
Contents?: true
Size: 940 Bytes
Versions: 3
Compression:
Stored size: 940 Bytes
Contents
require 'spec_helper' describe "use_restrictions/index" do fixtures :users, :roles, :user_has_roles before(:each) do view.extend EnjuLeaf::EnjuLeafHelper assign(:use_restrictions, Kaminari::paginate_array([ stub_model(UseRestriction, :name => "Not For Loan", :display_name => "Not For Loan", :note => "MyText", :position => 1 ), stub_model(UseRestriction, :name => "On Loan", :display_name => "On Loan", :note => "MyText", :position => 2 ) ]).page(1)) end it "renders a list of use_restrictions" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "Not For Loan".to_s, :count => 2 # 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