Sha256: 44eef41d47ef2581b56c6442d1c64186a4e2b883fa3a9966ecc88a388e17f422
Contents?: true
Size: 641 Bytes
Versions: 4
Compression:
Stored size: 641 Bytes
Contents
require 'spec_helper' module Enki 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 ) )].extend PaginationShim assign :comments, comments render :template => '/enki/admin/comments/index', :formats => [:html] end end end
Version data entries
4 entries across 4 versions & 1 rubygems