diff options
author | James McKinney <james@slashpoundbang.com> | 2011-10-17 01:15:25 -0400 |
---|---|---|
committer | James McKinney <james@slashpoundbang.com> | 2011-10-17 01:15:25 -0400 |
commit | b7075181100852ff2117d61b02881e84deaafa87 (patch) | |
tree | 2458869e7ce02dd7d61e0a14625f50a6c909c4b5 /spec/controllers/general_controller_spec.rb | |
parent | 3033d02eda5dd3db2404a2e2d8a88725dac5c812 (diff) |
fix spec example for 1.9
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r-- | spec/controllers/general_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb index 054b9881f..65b8d67a0 100644 --- a/spec/controllers/general_controller_spec.rb +++ b/spec/controllers/general_controller_spec.rb @@ -70,13 +70,13 @@ describe GeneralController, "when searching" do describe "when using different locale settings" do home_link_regex = /href=".*\/en"/ it "should generate URLs with a locale prepended when there's more than one locale set" do - ActionController::Routing::Routes.add_filters(['conditionallyprependlocale']) + ActionController::Routing::Routes.add_filters('conditionallyprependlocale') get :frontpage response.should have_text(home_link_regex) end it "should generate URLs without a locale prepended when there's only one locale set" do - ActionController::Routing::Routes.add_filters(['conditionallyprependlocale']) + ActionController::Routing::Routes.add_filters('conditionallyprependlocale') old_available_locales = FastGettext.default_available_locales available_locales = ['en'] FastGettext.default_available_locales = available_locales |