Skip to content

Commit

Permalink
don't change columns on controller config, will affect other tests us…
Browse files Browse the repository at this point in the history
…ing the same controller
  • Loading branch information
scambra committed Oct 24, 2024
1 parent b1ad1ec commit 7374ae6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions test/misc/attribute_params_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,8 @@ def update_record_from_params(record, action, *columns, &block)
end

def build_action_columns(record, action, *columns)
config = @controller.active_scaffold_config_for record.class
config.send(action).columns = columns
config.send(action).columns
config = @controller.active_scaffold_config_for(record.class)
config.build_action_columns(action, columns)
end
end

Expand Down
3 changes: 2 additions & 1 deletion test/mock_app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tmp/
log/
log/
db/*.sqlite3
2 changes: 1 addition & 1 deletion test/mock_app/config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)
run TestApp::Application
run RailsApp::Application
2 changes: 1 addition & 1 deletion test/mock_app/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3
database: ":memory:"
database: db/test.sqlite3
pool: 5
timeout: 5000

Expand Down
1 change: 0 additions & 1 deletion test/mock_app/db/test.sqlite3

This file was deleted.

0 comments on commit 7374ae6

Please sign in to comment.