Skip to content

Commit

Permalink
Fix failing rspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Nov 14, 2023
1 parent cc0b730 commit e06e831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/health_checks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check

def check_database
raise 'Unable to connect to Database' unless ActiveRecord::Base.connection.active?
raise 'Unable to connect to Database - pending migrations' unless ActiveRecord::Migration.check_pending!.nil?
raise 'Unable to connect to Database - pending migrations' unless ActiveRecord::Migration.check_all_pending!.nil?
rescue StandardError => e
raise "Unable to connect to Database - #{e}"
end
Expand Down
2 changes: 1 addition & 1 deletion spec/models/site_setting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
it 'fails if the attachement is too large' do
site_setting = build(:site_setting, image: fixture_file_upload(file_fixture('large-avatar.jpg'), 'image/jpeg'))
expect(site_setting).to be_invalid
expect(site_setting.errors).to be_of_kind(:image, :file_size_out_of_range)
expect(site_setting.errors).to be_of_kind(:image, :file_size_not_less_than)
end
end
end
Expand Down

0 comments on commit e06e831

Please sign in to comment.