Sha256: bb699f8c3f85cb1342465cfd33a9455f2eb5528aafab6c143317ee7994c56a09

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

require 'spec_helper'

module Enki

  describe "/admin/posts/index.html" do
    after(:each) do
      rendered.should be_valid_html5_fragment
    end

    it 'should render' do
      posts = [mock_model(Post,
        :published_at      => Time.now,
        :title             => 'A post',
        :body              => 'Hello I am a post',
        :slug              => 'a-post',
        :approved_comments => []
      )]
      posts.stub!(:total_pages).and_return(1)
      assign :posts, posts
      render :template => '/enki/admin/posts/index', :formats => [:html]
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enki-engine-0.0.5 spec/views/admin/posts/index.html_spec.rb
enki-engine-0.0.4 spec/views/admin/posts/index.html_spec.rb
enki-engine-0.0.3 spec/views/admin/posts/index.html_spec.rb
enki-engine-0.0.2 spec/views/admin/posts/index.html_spec.rb