项目作者: sue445

项目描述 :
Test data generator using precure
高级语言: Ruby
项目地址: git://github.com/sue445/faker-precure.git
创建时间: 2014-04-22T16:27:59Z
项目社区:https://github.com/sue445/faker-precure

开源协议:MIT License

下载


Faker::Precure

Test data generator using Precure(Pretty Cure)

Gem Version
test
Code Climate
Coverage Status

Installation

Add this line to your application’s Gemfile:

  1. gem 'faker-precure'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install faker-precure

Usage

  1. require "faker/precure"
  2. Faker::Precure.human_name
  3. #=> "黄瀬やよい"
  4. Faker::Precure.precure_name
  5. #=> "キュアアクア"
  6. Faker::Precure.cast_name
  7. #=> "豊口めぐみ"
  8. Faker::Precure.title
  9. #=> "Yes! プリキュア5"
  10. Faker::Precure.transform_message
  11. #=> "レッツプレイ!プリキュアモジュレーション!!\n爪弾くは女神の調べ! キュアミューズ!\n届け4人の組曲!スイートプリキュア!"
  12. Faker::Precure.user_name
  13. #=> "cure_mint"

Example of factory

  1. FactoryGirl.define do
  2. factory :user do
  3. name { Faker::Precure.human_name }
  4. end
  5. end

Contributing

  1. Fork it ( https://github.com/sue445/faker-precure/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request