Skip to content

Commit 18aec61

Browse files
authored
Merge pull request #6096 from thejonroberts/rspec-rails-setup-re-install
RSpec-Rails Configuration
2 parents c6b9a85 + d78fa52 commit 18aec61

File tree

65 files changed

+342
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+342
-239
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ vendor/bundle/
4848
# produced by tests (?)
4949
.rakeTasks
5050

51-
# produced by tests (?)
52-
*.csv
53-
5451
.*.swp
5552

5653
# Used for local developmen on Nix systems

.rspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--require spec_helper --order random
1+
--require spec_helper

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ group :test do
9696
gem "rails-controller-testing"
9797
gem "rake"
9898
gem "selenium-webdriver"
99-
gem "simplecov"
99+
gem "simplecov", require: false
100100
gem "webmock" # HTTP request stubber
101101
end

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,4 +672,4 @@ RUBY VERSION
672672
ruby 3.2.4p170
673673

674674
BUNDLED WITH
675-
2.5.22
675+
2.5.23

app/services/volunteer_birthday_reminder_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def send_reminders
77
.deliver(volunteer.supervisor)
88
end
99
else
10-
puts "Volunteer Birthday Reminder Rake task skipped. Today is not the 15th of the month."
10+
Rails.logger.info { "Volunteer Birthday Reminder Rake task skipped. Today is not the 15th of the month." }
1111
end
1212
end
1313
end

spec/datatables/reimbursement_datatable_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Requires the following to be defined:
2323
# - `sorted_case_contacts` = array of reimbursement records ordered in the expected way
24-
shared_examples_for "a sorted results set" do
24+
RSpec.shared_examples_for "a sorted results set" do
2525
it "should order ascending by default" do
2626
expect(first_result[:id]).to eq(sorted_case_contacts.first.id.to_s)
2727
end

spec/factories/casa_orgs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
twilio_phone_number { "+15555555555" }
1111

1212
trait :with_logo do
13-
logo { Rack::Test::UploadedFile.new(Rails.root.join("spec", "fixtures", "org_logo.jpeg")) }
13+
logo { Rack::Test::UploadedFile.new(Rails.root.join("spec", "fixtures", "files", "org_logo.jpeg")) }
1414
end
1515

1616
trait :all_reimbursements_enabled do
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
case_number,case_assignment,birth_month_year_youth,next_court_date
2-
CINA-01-4347,[email protected], March 2011,Sept 16 2022
3-
CINA-01-4348,"[email protected], [email protected]",February 2000,Jan 1 2023
4-
CINA-01-4349,,December 2016,
1+
case_number,case_assignment,birth_month_year_youth,next_court_date
2+
CINA-01-4347,[email protected], March 2011,Sept 16 2022
3+
CINA-01-4348,"[email protected], [email protected]",February 2000,Jan 1 2023
4+
CINA-01-4349,,December 2016,
File renamed without changes.

0 commit comments

Comments
 (0)