项目作者: MarioCarrion

项目描述 :
Teachable Mock API Wrapper Ruby Gem
高级语言: Ruby
项目地址: git://github.com/MarioCarrion/teachable-mock.git
创建时间: 2017-07-29T03:18:41Z
项目社区:https://github.com/MarioCarrion/teachable-mock

开源协议:MIT License

下载


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

  1. require 'teachable_mock'
  2. user = Teachable::Mock::User.register(email: 'fancy@email.com',
  3. password: 'abcdef12345',
  4. password_confirmation: 'abcdef12345')
  5. order = user.create_order('number' => 3,
  6. 'total' => 10,
  7. 'total_quantity' => 99)
  8. order.delete