mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
d19452147d
closes https://github.com/TryGhost/Team/issues/545 The price helper requires an object with amount & currency properties to work correctly. This updates the @price data object to expose these. In order to maintain backward compatibility with using the @price data as primitive number values, we add a valueOf method which returns the legacy dollar amount value. This means you can use {{price @price.monthly}} OR {{@price.monthly}} - the second of which will output the dollar amount. A new theme fixture was added to test both usages of the @price data |
||
---|---|---|
.. | ||
admin | ||
content | ||
README.md |
Acceptance Tests
This folder should only contain a set of basic API use cases.
The goal for acceptance tests is to keep test cases to basic usecases e.g. upload an image, schedule a post, download a theme. Otherwise tests should be written as a part of regression test suite.
Future improvement notes:
- We probably need a differentiation for the acceptance tests for session and api_key authentication.