spec/api/locales_api_spec.rb in phrase-2.0.0 vs spec/api/locales_api_spec.rb in phrase-2.1.0

- old
+ new

@@ -18,10 +18,24 @@ it 'should create an instance of LocalesApi' do expect(@api_instance).to be_instance_of(Phrase::LocalesApi) end end + # unit tests for account_locales + # List locales used in account + # List all locales unique by locale code used across all projects within an account. + # @param [Hash] opts the optional parameters + # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) + # @option opts [Integer] :page Page number + # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default + # @return [Array<LocalePreview1>] + describe 'account_locales test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for locale_create # Create a locale # Create a new locale. # @param project_id Project ID # @param locale_create_parameters @@ -55,11 +69,11 @@ # @param project_id Project ID # @param id ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [String] :branch specify the branch to use - # @option opts [String] :file_format File format name. See the format guide for all supported file formats. + # @option opts [String] :file_format File format name. See the &lt;a href&#x3D;\&quot;https://help.phrase.com/help/supported-platforms-and-formats\&quot;&gt;format guide&lt;/a&gt; for all supported file formats. # @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names. # @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \&quot;tags\&quot; parameter instead # @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well. # @option opts [Boolean] :exclude_empty_zero_forms Indicates whether zero forms should be included when empty in pluralized keys. # @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys. @@ -114,9 +128,10 @@ # @param project_id Project ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [Integer] :page Page number # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default + # @option opts [String] :sort_by Sort locales. Valid options are \&quot;name_asc\&quot;, \&quot;name_desc\&quot;, \&quot;default_asc\&quot;, \&quot;default_desc\&quot;. # @option opts [String] :branch specify the branch to use # @return [Array<Locale>] describe 'locales_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers