Started to Implement D-A, and roles scaffold - Need to finish Test Suite
[base_ror3_portal.git] / spec / views / roles / index.html.erb_spec.rb
blob5a5852475a5995b6c1da23d5422edaa983d784f5
1 require 'spec_helper'
3 describe "roles/index.html.erb" do
4   before(:each) do
5     assign(:roles, [
6       stub_model(Role,
7         :name => "Name"
8       ),
9       stub_model(Role,
10         :name => "Name"
11       )
12     ])
13   end
15   it "renders a list of roles" do
16     render
17     rendered.should have_selector("tr>td", :content => "Name".to_s, :count => 2)
18   end
19 end