Permalink
Browse files

change capybara and rails-controller-testing dependencies to minimal …

…versions and fix factory bot deprecation warnings (#3416)
  • Loading branch information...
stevereinke authored and parndt committed Feb 7, 2019
1 parent a258cef commit 2eb4f07615f767eff37cb88e2f005e5f1313b210
@@ -49,6 +49,7 @@ group :test do
gem 'launchy'
gem 'coveralls', require: false
gem 'rspec-retry'
gem 'puma'
end

# Load local gems according to Refinery developer preference.
@@ -1,13 +1,13 @@
FactoryBot.define do
factory :image, :class => ::Refinery::Image do
image Refinery.roots('refinery/images').join("spec/fixtures/beach.jpeg")
image { Refinery.roots('refinery/images').join("spec/fixtures/beach.jpeg") }
end

factory :alternate_image, :class => ::Refinery::Image do
image Refinery.roots('refinery/images').join("spec/fixtures/beach-alternate.jpeg")
image { Refinery.roots('refinery/images').join("spec/fixtures/beach-alternate.jpeg") }
end

factory :another_image, :class => ::Refinery::Image do
image Refinery.roots('refinery/images').join("spec/fixtures/fathead.png")
image { Refinery.roots('refinery/images').join("spec/fixtures/fathead.png") }
end
end
@@ -1,6 +1,6 @@
FactoryBot.define do
factory :page_part, class: Refinery::PagePart do
title 'Body'
slug 'side_body'
title { 'Body' }
slug { 'side_body' }
end
end
@@ -2,6 +2,6 @@

FactoryBot.define do
factory :resource, class: Refinery::Resource do
file Refinery.roots('refinery/resources').join('spec/fixtures/cape-town-tide-table.pdf')
file { Refinery.roots('refinery/resources').join('spec/fixtures/cape-town-tide-table.pdf') }
end
end
@@ -22,8 +22,8 @@ Gem::Specification.new do |s|
s.add_dependency 'database_cleaner', '~> 1.6'
s.add_dependency 'factory_bot_rails', '~> 4.8'
s.add_dependency 'rspec-rails', '~> 3.5'
s.add_dependency 'capybara', '~> 2.18'
s.add_dependency 'rails-controller-testing', '~> 0.1.1'
s.add_dependency 'capybara', '>= 2.18'
s.add_dependency 'rails-controller-testing', '>= 0.1.1'

s.required_ruby_version = Refinery::Version.required_ruby_version

0 comments on commit 2eb4f07

Please sign in to comment.