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

22 lines
683 B
Ruby
Raw Normal View History

2011-10-21 16:41:03 +01:00
require 'spec_helper'
describe "rights/show.html.haml" do
before(:each) do
@right = assign(:right, stub_model(Right,
:controller_name => "Controller Name",
:method_name => "Method Name",
: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(/Controller Name/)
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/Method Name/)
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/Name/)
end
end