Sha256: 642f2e28d0ad34f0aa437e052bd84ee19e9a42637ff4817837b9d3f89eb27a55
Contents?: true
Size: 524 Bytes
Versions: 4
Compression:
Stored size: 524 Bytes
Contents
require 'spec_helper' module Enki describe "/admin/pages/index.html" do after(:each) do rendered.should be_valid_html5_fragment end it 'should render' do pages = [mock_model(Page, :title => 'A page', :body => 'Hello I am a page', :slug => 'a-page', :created_at => Time.now )] pages.stub!(:total_pages).and_return(1) assign :pages, pages render :template => '/enki/admin/pages/index', :formats => [:html] end end end
Version data entries
4 entries across 4 versions & 1 rubygems