Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 03779e1693
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.639 kb
require File.dirname(__FILE__) + '/../../../spec_helper'
describe "/admin/comments/index.html" do
after(:each) do
rendered.should be_valid_html5_fragment
end
it 'should render' do
comments = [mock_model(Comment,
:author => 'Don Alias',
:body => 'Hello I am a post',
:created_at => Time.now,
:post_title => 'A Post',
:post => mock_model(Post,
:slug => 'a-post',
:published_at => Time.now
)
)]
comments.stub!(:total_pages).and_return(1)
assign :comments, comments
render :template => '/admin/comments/index', :formats => [:html]
end
end
Jump to Line
Something went wrong with that request. Please try again.