diaspora/features/uri-tests/uri.feature
Alec Leamas e01fb62eeb Expose and refer to assets on the sub_uri.
When using sub-uri, create a symlink in public/ making the assets
available at the sub-uri. Modify environment.rb so that asset paths
refers to this sub-uri path. Closes http://bugs.joindiaspora.com/issues/391
and http://bugs.joindiaspora.com/issues/737 when application mounted
on suburi (i. e., prev patch)
2011-01-09 23:38:03 +01:00

19 lines
1 KiB
Gherkin

@localserver
Feature: Flexible uri deployment
To make it possible to use Diaspora on small home servers,
which might house also other sw, it should be possible to deploy
diaspora on a sub-uri such as http://example.org/diaspora.
Scenario: Serve webfinger request
Given configuration parameter pod_url is http://localhost:3000/diaspora
When I retrieve http://localhost:3000/.well-known/host-meta into tmp/host-meta
Then I should find 'http://localhost:3000/diaspora/webfinger?q={uri}' in tmp/host-meta
Scenario: Present application to user
Given configuration parameter pod_url is http://localhost:3000/diaspora
When I visit url http://localhost:3000/diaspora
And I retrieve http://localhost:3000/diaspora/ into tmp/index.html
Then I should see "put something in"
And a page-asset should be http://localhost:3000/diaspora/stylesheets/ui.css
And I should match 'http://localhost:3000/diaspora/stylesheets/blueprint/print.css.[0-9]+"' in tmp/index.html