diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-03 11:44:34 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-03 11:44:47 +0100 |
commit | 204e5c3a739a2bedf927b2f6aa82c373731bbda8 (patch) | |
tree | 669931c42034d41329418f1ead3dc8ad6bcf9881 /spec/controllers/request_controller_spec.rb | |
parent | a79be3df0fddf2763376033cf731f0efbc915fcf (diff) |
Store user's locale against profile, so we can send them localised track emails. Also internationalize more strings at the same time. Fixes #163.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index f3084af12..55b5fc5e3 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -450,6 +450,7 @@ describe RequestController, "when making a new request" do @user.stub!(:get_undescribed_requests).and_return([]) @user.stub!(:can_leave_requests_undescribed?).and_return(false) @user.stub!(:can_file_requests?).and_return(true) + @user.stub!(:locale).and_return("en") User.stub!(:find).and_return(@user) @body = mock_model(PublicBody, :id => 314, :eir_only? => false, :is_requestable? => true, :name => "Test Quango") |