上级 4d21e496
......@@ -489,7 +489,7 @@ def index
test "valid timezone is setup correctly" do
add_to_config <<-RUBY
config.root = "#{app_path}"
config.time_zone = "Wellington"
config.time_zone = "Wellington"
RUBY
require "#{app_path}/config/environment"
......@@ -500,7 +500,7 @@ def index
test "raises when an invalid timezone is defined in the config" do
add_to_config <<-RUBY
config.root = "#{app_path}"
config.time_zone = "That big hill over yonder hill"
config.time_zone = "That big hill over yonder hill"
RUBY
assert_raise(ArgumentError) do
......@@ -511,7 +511,7 @@ def index
test "valid beginning of week is setup correctly" do
add_to_config <<-RUBY
config.root = "#{app_path}"
config.beginning_of_week = :wednesday
config.beginning_of_week = :wednesday
RUBY
require "#{app_path}/config/environment"
......@@ -522,7 +522,7 @@ def index
test "raises when an invalid beginning of week is defined in the config" do
add_to_config <<-RUBY
config.root = "#{app_path}"
config.beginning_of_week = :invalid
config.beginning_of_week = :invalid
RUBY
assert_raise(ArgumentError) do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册