Skip to content

Commit

Permalink
Merge branch 'feature/rails7' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Jan 2, 2024
2 parents 8476d38 + f8209d0 commit 2c929d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/create-db-user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE USER vscode CREATEDB;
CREATE DATABASE vscode WITH OWNER vscode;
3 changes: 1 addition & 2 deletions app/controllers/code_review_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def new
@review.save!

render partial: 'add_success', status: 200
return
else
change_id = params[:change_id].to_i unless params[:change_id].blank?
@review.change = Change.find(change_id) if change_id
Expand All @@ -137,8 +136,8 @@ def new
break
end
} unless @default_version_id
render partial: 'new_form', status: 200
end
render partial: 'new_form', status: 200
}
rescue ActiveRecord::RecordInvalid => e
logger.error e
Expand Down
3 changes: 2 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')
require 'simplecov'
require 'simplecov-rcov'
require 'simplecov-lcov'
Expand Down Expand Up @@ -43,7 +44,7 @@
include ActiveSupport::Testing::FileFixtures
end

require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')

include ActionDispatch::TestProcess

fixtures = []
Expand Down

0 comments on commit 2c929d2

Please sign in to comment.