1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Test options in Rails situation

This commit is contained in:
Takashi Kokubun 2017-03-23 22:09:44 +09:00
parent 8ada54767f
commit b7de7178d5

View file

@ -9,10 +9,11 @@ module Haml
)
end
def test_buffer_defaults_values_are_default_options
def test_buffer_defaults_values_are_the_same_as_rails_defaults
rails_defaults = Haml::Options.defaults.merge(Haml::Template.options)
Haml::Options.buffer_option_keys.each do |key|
assert_equal(
Haml::Options.defaults[key],
rails_defaults[key],
Haml::Options.buffer_defaults[key], "key: #{key}"
)
end