magiclabs/alchemy_cms — pull request #199 by masche842 (2012-03-03 09:35:41+00:00)
Title: Resource namespace

Alright, here it is...

Features:
Resource-Handler that is capable of all types of resources, in-app, engine, namespaced.
Integration and unit-tests are provided.

Alchemy-Specs are still passing except:

31|NOT_SUPPORTED_ERR: DOM Exception 9: The implementation did not support the requested type of object or operation.
1) Alchemy::Admin::PagesController flush complete page cache should remove the cache of all pages
Failure/Error: visit '/alchemy/admin/pages'
Capybara::Driver::Webkit::WebkitInvalidResponseError:
Unable to load URL: http://127.0.0.1:54666/alchemy/admin/login
# ./spec/integration/admin/pages_controller_spec.rb:64:in `block (3 levels) in '

2) Resources destroying an item should'n be on the list anymore
Failure/Error: page.should_not have_content "My second Event"
expected content "My second Event" not to return anything
# ./spec/integration/admin/resources_spec.rb:84:in `block (3 levels) in '

3) Alchemy::PagesController redirecting in multi language mode url nesting disabled requesting a nested url should redirect to not nested url
Failure/Error: visit "/alchemy/de/catalog/products/screwdriver"
Capybara::InfiniteRedirectError:
redirected more than 5 times, check for infinite redirects.
# ./spec/integration/pages_controller_spec.rb:172:in `block (7 levels) in '

303/303: 100% |==========================================| Time: 00:02:04

But I suppose 1 and 3 haven't passed on my system anyway. 1 passes at least with selenium instead of webkit.
3 is due to Alchemy's JS-only policy. Unfortenately there seems to be kind of a bug with declarative authorization and authorization_rules.rb in dummy-app.