Skip to content

Commit

Permalink
Update factory bot to factory bot 5 (#371)
Browse files Browse the repository at this point in the history
* update factory bot

* update mention spec to have an associated comment on mention creation

* Update Gemfile.next.lock

* update mention_spec.rb typo

* remove typo
  • Loading branch information
yuenmichelle1 authored Sep 27, 2024
1 parent 953402e commit b5c844f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ gem 'zoo_stream', '~> 1.0'

group :test, :development do
gem 'benchmark-ips'
gem 'factory_bot_rails', '~> 4.11.1'
gem 'factory_bot_rails', '~> 5.0'
gem 'ffi', '1.16.3'
gem 'guard'
gem 'guard-rspec'
Expand Down
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ GEM
erubi (1.13.0)
et-orbi (1.2.11)
tzinfo
factory_bot (4.11.1)
activesupport (>= 3.0.0)
factory_bot_rails (4.11.1)
factory_bot (~> 4.11.1)
railties (>= 3.0.0)
factory_bot (5.2.0)
activesupport (>= 4.2.0)
factory_bot_rails (5.2.0)
factory_bot (~> 5.2.0)
railties (>= 4.2.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand Down Expand Up @@ -139,7 +139,7 @@ GEM
http-accept (1.7.0)
http-cookie (1.0.6)
domain_name (~> 0.5)
i18n (1.14.5)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
its-it (1.3.0)
jmespath (1.6.2)
Expand Down Expand Up @@ -368,7 +368,7 @@ DEPENDENCIES
aws-sdk (~> 2.3.7)
benchmark-ips
codeclimate-test-reporter (~> 0.5)
factory_bot_rails (~> 4.11.1)
factory_bot_rails (~> 5.0)
faraday
faraday_middleware
ffi (= 1.16.3)
Expand Down
12 changes: 6 additions & 6 deletions Gemfile.next.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ GEM
erubi (1.13.0)
et-orbi (1.2.11)
tzinfo
factory_bot (4.11.1)
activesupport (>= 3.0.0)
factory_bot_rails (4.11.1)
factory_bot (~> 4.11.1)
railties (>= 3.0.0)
factory_bot (5.2.0)
activesupport (>= 4.2.0)
factory_bot_rails (5.2.0)
factory_bot (~> 5.2.0)
railties (>= 4.2.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand Down Expand Up @@ -368,7 +368,7 @@ DEPENDENCIES
aws-sdk (~> 2.3.7)
benchmark-ips
codeclimate-test-reporter (~> 0.5)
factory_bot_rails (~> 4.11.1)
factory_bot_rails (~> 5.0)
faraday
faraday_middleware
ffi (= 1.16.3)
Expand Down
5 changes: 4 additions & 1 deletion spec/models/mention_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@

describe '#notify_later' do
it 'should queue the notification' do
mention = build :mention, mentionable: focus
project_board = create :board, section: "project-#{ focus.project.id}"
project_discussion = create :discussion, board: project_board
project_comment = create :comment, discussion: project_discussion
mention = build :mention, mentionable: focus, comment: project_comment
expect(MentionWorker).to receive(:perform_async)
mention.save!
end
Expand Down

0 comments on commit b5c844f

Please sign in to comment.