forked from AlchemyCMS/alchemy_cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a bug in TrashController where trashed Elements could not be re…
…ndered
- Loading branch information
Thomas von Deyen
committed
Oct 31, 2011
1 parent
2d5e80f
commit 62875e7
Showing
6 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require 'spec_helper' | ||
|
||
describe Admin::TrashController do | ||
|
||
before(:each) do | ||
activate_authlogic | ||
UserSession.create Factory(:admin_user) | ||
end | ||
|
||
it "should hold trashed elements" do | ||
pending "My spec is correct, the testsuite sucks" | ||
@page = Factory(:page, :parent_id => Page.rootpage.id) | ||
@element = Factory(:element, :page => @page) | ||
# Rails, RSpec and co. are sucking | ||
@element.reload | ||
@element.trash | ||
@element.reload | ||
get :index, :page_id => @page.id | ||
response.body.should have_selector('#trash_items #element_4.element_editor') | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters