Sha256: 3862bc220b4f5fb104c0c54434a4c293e9b2fb1bda3eb8d9176aee39f87c3a97
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
@announce Feature: Asset template rendering Assets should render Mustache variables. When listing to STDOUT without a template, the raw attribute will be shown. Background: Empty configuration file so that we don't read global config locations Given an empty file named "repo.conf" Scenario: Render templates to STDOUT Given a file named "test.erb" with: """ <% require 'repo_manager/actions/action_helper' -%> <% extend RepoManager::ActionHelper -%> <% for item in items do -%> <%= item.name %>: --- path: <%= relative_path(item.path) %> <% end -%> """ And a file named "assets/asset1/asset.conf" with: """ --- path: folder/{{name}}/another_folder """ When I run `repo list --type=app_asset` Then the exit status should be 0 And its output should contain: """ path: folder/{{name}}/another_folder """ When I run `repo list --template=test.erb --type=app_asset` Then the exit status should be 0 And its output should not contain: """ path: folder/{{name}}/another_folder """ And its output should contain: """ path: ./folder/asset1/another_folder """
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
repo_manager-0.7.3 | features/assets/rendering.feature |
repo_manager-0.7.2 | features/assets/rendering.feature |
repo_manager-0.7.1 | features/assets/rendering.feature |