Forráskód Böngészése

Fix Hanami framework tests (#2829)

Jester 8 éve
szülő
commit
8550bd82e1

+ 1 - 1
frameworks/Ruby/hanami/Gemfile

@@ -6,7 +6,7 @@ gem 'hanami-model', '~> 1.0'
 
 gem 'mysql2'
 
-gem 'rom-sql', git: 'https://github.com/rom-rb/rom-sql'
+gem 'rom-sql'
 
 group :production do
   gem 'puma'

+ 1 - 1
frameworks/Ruby/hanami/apps/web/application.rb

@@ -96,7 +96,7 @@ module Web
       # Default format for responses that don't consider the request format
       # Argument: A symbol representation of a mime type, defaults to :html
       #
-      default_response_format :json
+      # default_response_format :json
 
       # HTTP Body parsers
       # Parse non GET responses body for a specific mime type

+ 1 - 0
frameworks/Ruby/hanami/apps/web/views/hello_world/fortune.rb

@@ -1,5 +1,6 @@
 module Web::Views::HelloWorld
   class Fortune
     include Web::View
+    format :html
   end
 end