DEV: Remove `before(:all)` from RSpec suite
This commit is contained in:
parent
e7f04a8674
commit
cc515e2c1c
2
Gemfile
2
Gemfile
|
@ -170,7 +170,7 @@ group :test, :development do
|
||||||
gem 'shoulda-matchers', require: false
|
gem 'shoulda-matchers', require: false
|
||||||
gem 'rspec-html-matchers'
|
gem 'rspec-html-matchers'
|
||||||
gem 'byebug', require: ENV['RM_INFO'].nil?, platform: :mri
|
gem 'byebug', require: ENV['RM_INFO'].nil?, platform: :mri
|
||||||
gem "rubocop-discourse", require: false
|
gem 'rubocop-discourse', require: false, github: 'discourse/rubocop-discourse'
|
||||||
gem 'parallel_tests'
|
gem 'parallel_tests'
|
||||||
|
|
||||||
gem 'rswag-specs'
|
gem 'rswag-specs'
|
||||||
|
|
13
Gemfile.lock
13
Gemfile.lock
|
@ -5,6 +5,14 @@ GIT
|
||||||
mail (2.8.0.edge)
|
mail (2.8.0.edge)
|
||||||
mini_mime (>= 0.1.1)
|
mini_mime (>= 0.1.1)
|
||||||
|
|
||||||
|
GIT
|
||||||
|
remote: https://github.com/discourse/rubocop-discourse.git
|
||||||
|
revision: 0de6d72891fea488cae22332505e4e3f26b4e157
|
||||||
|
specs:
|
||||||
|
rubocop-discourse (2.5.0)
|
||||||
|
rubocop (>= 1.1.0)
|
||||||
|
rubocop-rspec (>= 2.0.0)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
@ -422,9 +430,6 @@ GEM
|
||||||
unicode-display_width (>= 1.4.0, < 3.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (1.19.1)
|
rubocop-ast (1.19.1)
|
||||||
parser (>= 3.1.1.0)
|
parser (>= 3.1.1.0)
|
||||||
rubocop-discourse (2.5.0)
|
|
||||||
rubocop (>= 1.1.0)
|
|
||||||
rubocop-rspec (>= 2.0.0)
|
|
||||||
rubocop-rspec (2.12.1)
|
rubocop-rspec (2.12.1)
|
||||||
rubocop (~> 1.31)
|
rubocop (~> 1.31)
|
||||||
ruby-prof (1.4.3)
|
ruby-prof (1.4.3)
|
||||||
|
@ -612,7 +617,7 @@ DEPENDENCIES
|
||||||
rspec-rails
|
rspec-rails
|
||||||
rss
|
rss
|
||||||
rswag-specs
|
rswag-specs
|
||||||
rubocop-discourse
|
rubocop-discourse!
|
||||||
ruby-prof
|
ruby-prof
|
||||||
ruby-readability
|
ruby-readability
|
||||||
rubyzip
|
rubyzip
|
||||||
|
|
|
@ -2,14 +2,6 @@
|
||||||
|
|
||||||
module RedisSnapshotHelper
|
module RedisSnapshotHelper
|
||||||
def use_redis_snapshotting
|
def use_redis_snapshotting
|
||||||
before(:all) do
|
|
||||||
RedisSnapshot.begin_faux_transaction
|
|
||||||
end
|
|
||||||
|
|
||||||
after(:all) do
|
|
||||||
RedisSnapshot.end_faux_transaction
|
|
||||||
end
|
|
||||||
|
|
||||||
before(:each) do
|
before(:each) do
|
||||||
RedisSnapshot.begin_faux_transaction
|
RedisSnapshot.begin_faux_transaction
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue