Skip to content

Commit

Permalink
encoding test
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Jul 5, 2024
1 parent 0f9a418 commit 4d49937
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ jobs:
done
cat ${{ github.workspace }}/setup.sql | cockroach sql --insecure
- name: Test
run: bundle exec rake test TESTOPTS='--profile=3'
run: bundle exec rake test TESTOPTS='--profile=3 --name=test_#undefine_attribute_methods_undefines_alias_attribute_methods'
10 changes: 10 additions & 0 deletions test/cases/helper_cockroachdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,13 @@ def header(stream)
end

ActiveRecord::SchemaDumper.prepend(NoHeaderExt)


puts ?= * 100
puts "Encoding.find(\"external\")\t=>\t#{Encoding.find("external")}"
puts "Encoding.default_external\t=>\t#{Encoding.default_external}"
puts "Encoding.find(\"internal\")\t=>\t#{Encoding.find("internal")}"
puts "Encoding.default_internal\t=>\t#{Encoding.default_internal}"
puts "Encoding.find(\"filesystem\")\t=>\t#{Encoding.find("filesystem")}"
puts "Encoding.find(\"locale\")\t=>\t#{Encoding.find("locale")}"
puts ?= * 100
2 changes: 2 additions & 0 deletions test/excludes/AttributeMethodsTest.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# TODO: Rails 7.2 remove this exclusion
exclude "test_#undefine_attribute_methods_undefines_alias_attribute_methods", "The test will be fixed in 7.2 (https://github.com/rails/rails/commit/a0993f81d0450a191da1ee35282f60fc2899135c)"

0 comments on commit 4d49937

Please sign in to comment.