Skip to content

Commit

Permalink
more test tweaks, fix sys::filesystem issue
Browse files Browse the repository at this point in the history
  • Loading branch information
meltheadorable committed Jun 5, 2024
1 parent fd59c41 commit 2089895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
ENV.delete("TEST_LOGGED_IN_USER_ID")

Rails::Debug.log("<----- #{example.description} (#{example.location}) ----->")
@setting = create(:setting, mission: nil)
@_setting = create(:setting, mission: nil)
example.run
@setting.destroy!
@_setting.destroy!
Rails::Debug.log("<----- #{example.description} ----->")
Rails::Debug.log("")
end
Expand Down
2 changes: 1 addition & 1 deletion spec/system/responses/csv_export_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
context "No space on disk for bulk media export" do
before do
stub = double(block_size: 0, blocks_available: 0)
allow(Sys::Filedescribe).to receive(:stat).and_return(stub)
allow(Sys::Filesystem).to receive(:stat).and_return(stub)
end

scenario "Should see an error" do
Expand Down

0 comments on commit 2089895

Please sign in to comment.