MarioCarrion / teachable-mock

Teachable Mock API Wrapper Ruby Gem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Teachable Mock API Wrapper

Build Status Test Coverage

Ruby gem that wraps the Teachable Mock API

Development

This assumes you're using rvm

  1. gem install bundler && bundle install
  2. bundle exec rspec
  3. Profit

Examples

require 'teachable_mock'

user = Teachable::Mock::User.register(email: 'fancy@email.com',
                                      password: 'abcdef12345',
                                      password_confirmation: 'abcdef12345')

order = user.create_order('number'         => 3,
                          'total'          => 10,
                          'total_quantity' => 99)
order.delete

About

Teachable Mock API Wrapper Ruby Gem

License:MIT License


Languages

Language:Ruby 100.0%