Mailosaur Ruby Client Library
Mailosaur allows you to automate tests involving email. Allowing you to perform end-to-end automated and functional email testing.
Installation
gem install mailosaur
Documentation and usage examples
Mailosaur's documentation includes all the information and usage examples you'll need.
Building
# Depending on your configuration you may need to be elevated or root to run this. (on OSX/Linux use 'sudo')
npm install -g autorest
- Run the build script
./build.sh
AutoRest Configuration
This project uses AutoRest, below is the configuration that the autorest
command will automatically pick up.
input-file: https://mailosaur.com/swagger/latest/swagger.json
ruby:
output-folder: lib
add-credentials: true
sync-methods: essential
use-internal-constructors: true
override-client-name: MailosaurBaseClient
namespace: Mailosaur
package-name: Mailosaur
package-version: 5.0.2
Running tests
Once you've cloned this repository locally, you can simply run:
bundle install
export MAILOSAUR_API_KEY=your_api_key
export MAILOSAUR_SERVER=server_id
bundle exec rake test
Contacting us
You can get us at [email protected]