This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
60 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,12 @@ | ||
language: ruby | ||
before_install: | ||
- sudo apt-get update | ||
- sudo apt-get install redis-server | ||
- sudo service redis-server start | ||
script: | ||
- bundle exec rake spec:coveralls | ||
|
||
rvm: | ||
- 2.2.2 | ||
- 2.1.1 | ||
- 2.0.0 | ||
- 1.9.3 | ||
- jruby-19mode | ||
- jruby-head | ||
- 2.2 | ||
- 2.3 | ||
- 2.4 | ||
env: | ||
- CONN=hiredis | ||
- CONN=ruby | ||
|
||
matrix: | ||
exclude: | ||
- rvm: jruby-head | ||
env: CONN=hiredis | ||
- rvm: jruby-19mode | ||
env: CONN=hiredis | ||
allow_failures: | ||
- rvm: jruby-head | ||
env: CONN=ruby | ||
services: | ||
- redis-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
lib/redpear/model/factory_girl.rb → lib/redpear/model/factory_bot.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
require 'factory_girl' | ||
require 'factory_bot' | ||
require 'redpear/model' | ||
|
||
class Redpear::Model | ||
|
||
# FactoryGirl module for your tests/specs. Example: | ||
# FactoryBot module for your tests/specs. Example: | ||
# | ||
# require 'redpear/model/factory_girl' | ||
# require 'redpear/model/factory_bot' | ||
# | ||
# FactoryGirl.define do | ||
# FactoryBot.define do | ||
# factory :post do | ||
# title { "A Title" } | ||
# created_at { Time.at(1313131313) } | ||
# end | ||
# end | ||
# | ||
module FactoryGirl | ||
module FactoryBot | ||
|
||
# @return [Boolean] always true. FactoryGirl requires it. | ||
# @return [Boolean] always true. FactoryBot requires it. | ||
def save! | ||
after_save({}) # call after_save again | ||
true | ||
end | ||
|
||
end | ||
include FactoryGirl | ||
include FactoryBot | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
spec/redpear/model/factory_girl_spec.rb → spec/redpear/model/factory_bot_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters