require 'spec_helper' require 'json' # Unit tests for Phrase::ProjectsApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'ProjectsApi' do before do # run before each test @api_instance = Phrase::ProjectsApi.new end after do # run after each test end describe 'test an instance of ProjectsApi' do it 'should create an instance of ProjectsApi' do expect(@api_instance).to be_instance_of(Phrase::ProjectsApi) end end # unit tests for project_create # Create a project # Create a new project. # @param project_create_parameters # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [ProjectDetails] describe 'project_create 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 project_delete # Delete a project # Delete an existing project. # @param id ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [nil] describe 'project_delete 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 project_show # Get a single project # Get details on a single project. # @param id ID # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [ProjectDetails] describe 'project_show 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 project_update # Update a project # Update an existing project. # @param id ID # @param project_update_parameters # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @return [ProjectDetails] describe 'project_update 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 projects_list # List projects # List all projects the current user has access to. # @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 Limit on the number of objects to be returned, between 1 and 100. 25 by default # @option opts [String] :account_id Filter by Account ID # @option opts [String] :sort_by Sort projects. Valid options are \"name_asc\", \"name_desc\", \"updated_at_asc\", \"updated_at_desc\", \"space_asc\" and \"space_desc\". # @option opts [Array] :filters Filter projects. Valid options are [\"favorites\"]. # @return [Array] describe 'projects_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end