Skip to content

Commit

Permalink
build(deps-dev): bump rspec-rails from 6.1.4 to 7.0.1 (#7253)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump rspec-rails from 6.1.4 to 7.0.1

Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 6.1.4 to 7.0.1.
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md)
- [Commits](rspec/rspec-rails@v6.1.4...v7.0.1)

---
updated-dependencies:
- dependency-name: rspec-rails
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Liu <[email protected]>
  • Loading branch information
dependabot[bot] and david-yz-liu authored Oct 4, 2024
1 parent 8b23f9d commit 7ef815f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ group :development, :test do
gem 'capybara'
gem 'debug', '>= 1.0.0'
gem 'i18n-tasks', require: false
gem 'rspec-rails', '~> 6.1.4'
gem 'rspec-rails', '~> 7.0.1'
gem 'selenium-webdriver'
end

Expand Down
20 changes: 10 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ GEM
rainbow (>= 2.2.2, < 4.0)
terminal-table (>= 1.5.1)
io-console (0.7.2)
irb (1.14.0)
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
js-routes (2.2.8)
Expand Down Expand Up @@ -364,7 +364,7 @@ GEM
redis-namespace (1.11.0)
redis (>= 4)
regexp_parser (2.9.0)
reline (0.5.9)
reline (0.5.10)
io-console (~> 0.5)
responders (3.1.1)
actionpack (>= 5.2)
Expand All @@ -388,18 +388,18 @@ GEM
chunky_png (~> 1.0)
rqrcode_core (~> 1.0)
rqrcode_core (1.2.0)
rspec-core (3.13.0)
rspec-core (3.13.1)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.2)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.4)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-rails (7.0.1)
actionpack (>= 7.0)
activesupport (>= 7.0)
railties (>= 7.0)
rspec-core (~> 3.13)
rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13)
Expand Down Expand Up @@ -475,7 +475,7 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.17)
zeitwerk (2.6.18)

PLATFORMS
ruby
Expand Down Expand Up @@ -534,7 +534,7 @@ DEPENDENCIES
resque
resque-scheduler
rmagick (~> 6.0.1)
rspec-rails (~> 6.1.4)
rspec-rails (~> 7.0.1)
rtesseract
rubyzip
rugged
Expand Down
7 changes: 4 additions & 3 deletions spec/controllers/courses_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,10 @@
end

it 'enqueues a job' do
post_as instructor, :sync_roster,
params: { id: course.id, lti_deployment_id: lti_deployment.id, include_students: 'true' }
expect { LtiRosterSyncJob.perform_later }.to have_enqueued_job
expect do
post_as instructor, :sync_roster,
params: { id: course.id, lti_deployment_id: lti_deployment.id, include_students: 'true' }
end.to have_enqueued_job
end

it 'creates a schedule' do
Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/autotest_results_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
let(:test_runs) { create_list(:test_run, 3, grouping: grouping, status: :in_progress) }

context 'when running as a background job' do
let(:job_args) { [assignment.id] }
let(:job_args) { [] }
let(:job) { AutotestResultsJob.perform_later(*job_args) }

context 'when there is no job currently in progress' do
Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/download_submissions_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
let(:groupings_without_files) { create_list(:grouping, 3) }

context 'when running as a background job' do
let(:job_args) { [groupings.map(&:id), 'zip_path.zip', assignment.id] }
let(:job_args) { [groupings.map(&:id), 'zip_path.zip', assignment.id, assignment.course_id] }

include_examples 'background job'
end
Expand Down
3 changes: 2 additions & 1 deletion spec/jobs/lti_roster_sync_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

context 'when running as a background job' do
let(:job_args) do
[lti_deployment.id, [LtiDeployment::LTI_ROLES[:learner], LtiDeployment::LTI_ROLES[:ta]]]
[{ deployment_id: lti_deployment.id,
role_types: [LtiDeployment::LTI_ROLES[:learner], LtiDeployment::LTI_ROLES[:ta]] }]
end

include_examples 'background job'
Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/lti_sync_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
context 'when running as a background job, with an lti line item' do
before { create(:lti_line_item, lti_deployment: lti_deployment, assessment: assessment) }

let(:job_args) { [[lti_deployment.id], assessment] }
let(:job_args) { [[lti_deployment.id], assessment, assessment.course] }

include_examples 'background job'
end
Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/update_repo_permissions_job_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe UpdateRepoPermissionsJob do
context 'when running as a background job' do
let(:job_args) { [] }
let(:job_args) { ['MemoryRepository'] }

before { redis.del('repo_permissions') }

Expand Down

0 comments on commit 7ef815f

Please sign in to comment.