gtt-project / redmine_text_blocks

Plugin that adds configurable text blocks for replying to issues
GNU General Public License v3.0
3 stars 3 forks source link

Test error on Redmine5.0 + Ruby3.1 environment #24

Closed sanak closed 2 years ago

sanak commented 2 years ago

Problem Test error on Redmine5.0 + Ruby3.1 environment.

% RAILS_ENV=test NAME=redmine_text_blocks bundle exec rake redmine:plugins:test
Unknown database adapter `postgis` found in config/database.yml, use Gemfile.local to load your own database gems
Run options: --seed 44788

# Running:

F

Failure:
TextBlocksAdminTest#test_textblock_crud [/Users/sanak/Projects/gtt/git/redmine50/plugins/redmine_text_blocks/test/integration/text_blocks_admin_test.rb:25]:
"TextBlock.count" didn't change by 1.
Expected: 1
  Actual: 0

rails test plugins/redmine_text_blocks/test/integration/text_blocks_admin_test.rb:16

.F

Failure:
TextBlocksProjectTest#test_textblock_crud [/Users/sanak/Projects/gtt/git/redmine50/plugins/redmine_text_blocks/test/integration/text_blocks_project_test.rb:39]:
"TextBlock.count" didn't change by 1.
Expected: 1
  Actual: 0

rails test plugins/redmine_text_blocks/test/integration/text_blocks_project_test.rb:25

.E

Error:
TextBlockTest#test_should_validate_name_uniqueness_against_global_text_block:
ArgumentError: wrong number of arguments (given 2, expected 1)
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:10:in `initialize'
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:7:in `new'
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:7:in `call'
    plugins/redmine_text_blocks/test/unit/text_block_test.rb:30:in `block (2 levels) in <class:TextBlockTest>'
    plugins/redmine_text_blocks/test/unit/text_block_test.rb:29:in `block in <class:TextBlockTest>'

rails test plugins/redmine_text_blocks/test/unit/text_block_test.rb:16

E

Error:
TextBlockTest#test_should_validate_name_uniqueness_against_local_text_block:
ArgumentError: wrong number of arguments (given 2, expected 1)
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:10:in `initialize'
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:7:in `new'
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:7:in `call'
    plugins/redmine_text_blocks/test/unit/text_block_test.rb:38:in `block (2 levels) in <class:TextBlockTest>'
    plugins/redmine_text_blocks/test/unit/text_block_test.rb:37:in `block in <class:TextBlockTest>'

rails test plugins/redmine_text_blocks/test/unit/text_block_test.rb:36

E

Error:
TextBlockTest#test_deletion_of_project_should_delete_textblocks:
ArgumentError: wrong number of arguments (given 2, expected 1)
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:10:in `initialize'
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:7:in `new'
    plugins/redmine_text_blocks/lib/redmine_text_blocks/save_text_block.rb:7:in `call'
    plugins/redmine_text_blocks/test/unit/text_block_test.rb:59:in `block in <class:TextBlockTest>'

rails test plugins/redmine_text_blocks/test/unit/text_block_test.rb:58

.

Finished in 1.361121s, 5.8775 runs/s, 20.5713 assertions/s.
8 runs, 28 assertions, 2 failures, 3 errors, 0 skips