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

16 lines
335 B
Ruby

require 'spec_helper'
describe "roles/show.html.haml" do
before(:each) do
@role = assign(:role, stub_model(Role,
:name => "Name"
))
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/Name/)
end
end