File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
spec/integration/messages Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class Config
46
46
setting :backend , default : :yaml
47
47
setting :namespace
48
48
setting :load_paths , default : ::Set [ DEFAULT_MESSAGES_PATH ] , constructor : :dup . to_proc
49
- setting :top_namespace , default : DEFAULT_MESSAGES_ROOT
49
+ setting :top_namespace , default : DEFAULT_MESSAGES_ROOT , constructor : :to_s . to_proc
50
50
setting :default_locale
51
51
end
52
52
Original file line number Diff line number Diff line change 89
89
90
90
expect ( result . errors ( full : true ) [ :post_body ] ) . to eql ( [ "(dry_validation) Post body must be filled" ] )
91
91
end
92
+
93
+ it "allows symbol for top namespace" do
94
+ schema = Dry ::Schema . Params do
95
+ config . messages . top_namespace = :dry_validation
96
+ end
97
+ assert_equal "dry_validation" , schema . config . messages . top_namespace
98
+ end
92
99
end
93
100
end
You can’t perform that action at this time.
0 commit comments