Sha256: 9993cc52720cc9d524d75df36c30295fe57deef00ef5209986bd91fb33d52059

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

require 'spec_helper'

describe Alchemy::Admin::TrashController do

  render_views

  before(:each) do
    activate_authlogic
    Alchemy::UserSession.create Factory(:admin_user)
  end

  it "should hold trashed elements" do
    @page = Factory(:page, :parent_id => Alchemy::Page.rootpage.id)
    @element = Factory(:element, :page => nil, :public => false, :position => 0, :folded => true)
    get :index, :page_id => @page.id
    response.body.should have_selector("#trash_items #element_#{@element.id}.element_editor")
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc6 spec/controllers/admin/trash_controller_spec.rb
alchemy_cms-2.2.rc3 spec/controllers/admin/trash_controller_spec.rb
alchemy_cms-2.2.rc2 spec/controllers/admin/trash_controller_spec.rb
alchemy_cms-2.2.rc1 spec/controllers/admin/trash_controller_spec.rb