Started to Implement D-A, and roles scaffold - Need to finish Test Suite
[base_ror3_portal.git] / spec / views / roles / new.html.erb_spec.rb
blob7544232516b0bcfd446e6bdf65ad1decbd60a5ec
1 require 'spec_helper'
3 describe "roles/new.html.erb" do
4   before(:each) do
5     assign(:role, stub_model(Role,
6       :new_record? => true,
7       :name => "MyString"
8     ))
9   end
11   it "renders new role form" do
12     render
14     rendered.should have_selector("form", :action => roles_path, :method => "post") do |form|
15       form.should have_selector("input#role_name", :name => "role[name]")
16     end
17   end
18 end