=begin #MailSlurp API #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository The version of the OpenAPI document: 67c9a1eda264be4cfe0bb2c76151f0aadf0862bc Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.2.3 =end require 'spec_helper' require 'json' # Unit tests for MailSlurpClient::WaitForControllerApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'WaitForControllerApi' do before do # run before each test @api_instance = MailSlurpClient::WaitForControllerApi.new end after do # run after each test end describe 'test an instance of WaitForControllerApi' do it 'should create an instance of WaitForControllerApi' do expect(@api_instance).to be_instance_of(MailSlurpClient::WaitForControllerApi) end end # unit tests for wait_for # Wait for conditions to be met # Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met # @param [Hash] opts the optional parameters # @option opts [WaitForConditions] :wait_for_conditions Conditions to wait for # @return [Array] describe 'wait_for 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 wait_for_email_count # Wait for and return count number of emails # If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded. # @param [Hash] opts the optional parameters # @option opts [Integer] :count Number of emails to wait for. Must be greater that 1 # @option opts [String] :inbox_id Id of the inbox we are fetching emails from # @option opts [Integer] :timeout Max milliseconds to wait # @option opts [Boolean] :unread_only Optional filter for unread only # @return [Array] describe 'wait_for_email_count 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 wait_for_latest_email # Fetch inbox's latest email or if empty wait for an email to arrive # Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox see the other receive methods such as waitForNthEmail or waitForEmailCount. # @param [Hash] opts the optional parameters # @option opts [String] :inbox_id Id of the inbox we are fetching emails from # @option opts [Integer] :timeout Max milliseconds to wait # @option opts [Boolean] :unread_only Optional filter for unread only # @return [Email] describe 'wait_for_latest_email 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 wait_for_matching_email # Wait or return list of emails that match simple matching patterns # Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. # @param match_options matchOptions # @param [Hash] opts the optional parameters # @option opts [Integer] :count Number of emails to wait for. Must be greater that 1 # @option opts [String] :inbox_id Id of the inbox we are fetching emails from # @option opts [Integer] :timeout Max milliseconds to wait # @option opts [Boolean] :unread_only Optional filter for unread only # @return [Array] describe 'wait_for_matching_email 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 wait_for_nth_email # Wait for or fetch the email with a given index in the inbox specified # If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned. # @param [Hash] opts the optional parameters # @option opts [String] :inbox_id Id of the inbox you are fetching emails from # @option opts [Integer] :index Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index=1 # @option opts [Integer] :timeout Max milliseconds to wait for the nth email if not already present # @option opts [Boolean] :unread_only Optional filter for unread only # @return [Email] describe 'wait_for_nth_email test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end