rosa-build/spec/views/roles/edit.html.haml_spec.rb

19 lines
453 B
Ruby
Raw Normal View History

2011-10-21 16:41:03 +01:00
require 'spec_helper'
describe "roles/edit.html.haml" do
before(:each) do
@role = assign(:role, stub_model(Role,
:name => "MyString"
))
end
it "renders the edit role form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form", :action => roles_path(@role), :method => "post" do
assert_select "input#role_name", :name => "role[name]"
end
end
end