Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.1
3.0.0
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
source "https://rubygems.org"

gem "activerecord", "~> 4.1"
gem "activerecord"
gem "database_cleaner"
gem "factory_girl"
gem "rspec", "~> 3.1"
gem "factory_bot"
gem "rspec"
gem "rake"
gem "sqlite3"
gem "timecop"
90 changes: 48 additions & 42 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,55 +1,61 @@
GEM
remote: https://rubygems.org/
specs:
activemodel (4.1.8)
activesupport (= 4.1.8)
builder (~> 3.1)
activerecord (4.1.8)
activemodel (= 4.1.8)
activesupport (= 4.1.8)
arel (~> 5.0.0)
activesupport (4.1.8)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arel (5.0.1.20140414130214)
builder (3.2.2)
database_cleaner (1.3.0)
diff-lcs (1.2.5)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
i18n (0.6.11)
json (1.8.1)
minitest (5.4.3)
rake (10.4.2)
rspec (3.1.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-core (3.1.7)
rspec-support (~> 3.1.0)
rspec-expectations (3.1.2)
activemodel (6.1.3.2)
activesupport (= 6.1.3.2)
activerecord (6.1.3.2)
activemodel (= 6.1.3.2)
activesupport (= 6.1.3.2)
activesupport (6.1.3.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
concurrent-ruby (1.1.9)
database_cleaner (2.0.1)
database_cleaner-active_record (~> 2.0.0)
database_cleaner-active_record (2.0.1)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.4.4)
factory_bot (6.2.0)
activesupport (>= 5.0.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
minitest (5.14.4)
rake (13.0.3)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.1.0)
rspec-mocks (3.1.3)
rspec-support (~> 3.1.0)
rspec-support (3.1.2)
sqlite3 (1.3.10)
thread_safe (0.3.4)
timecop (0.7.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
sqlite3 (1.4.2)
timecop (0.9.4)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
zeitwerk (2.4.2)

PLATFORMS
ruby

DEPENDENCIES
activerecord (~> 4.1)
activerecord
database_cleaner
factory_girl
factory_bot
rake
rspec (~> 3.1)
rspec
sqlite3
timecop

BUNDLED WITH
2.2.3
8 changes: 4 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "rspec"
require "active_record"
require "database_cleaner"
require "factory_girl"
require "factory_bot"
require "timecop"

PROJECT_ROOT = File.expand_path("../..", __FILE__)
Expand All @@ -13,7 +13,7 @@
database: File.join(PROJECT_ROOT, "test.db")
)

class CreateSchema < ActiveRecord::Migration
class CreateSchema < ActiveRecord::Migration[4.2]
def self.up
create_table :posts, force: true do |table|
table.string :title
Expand All @@ -22,7 +22,7 @@ def self.up
end
end

FactoryGirl.define do
FactoryBot.define do
sequence(:title) { |n| "title#{n}text" }

factory :post do
Expand All @@ -31,7 +31,7 @@ def self.up
end

RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
config.include FactoryBot::Syntax::Methods

config.before(:suite) do
CreateSchema.suppress_messages { CreateSchema.migrate(:up) }
Expand Down