diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-07 15:49:32 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-07 15:49:32 +0100 |
commit | cc5dd55a9bd55dbba4dd239d3334493bae2cb3bf (patch) | |
tree | 7903ede99984d149d2fa343877e4fc1670a41b22 /spec/models/info_request_event_spec.rb | |
parent | da95c03f9f224ded9e0e3bda2635bcf4f63faf5d (diff) | |
parent | f75b1de52432018c19d9fce04b1127ab114df0ea (diff) |
Merge branch 'version-dependent-caching' into rails-3-develop
Diffstat (limited to 'spec/models/info_request_event_spec.rb')
-rw-r--r-- | spec/models/info_request_event_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/info_request_event_spec.rb b/spec/models/info_request_event_spec.rb index 53c83bd46..1299dfb63 100644 --- a/spec/models/info_request_event_spec.rb +++ b/spec/models/info_request_event_spec.rb @@ -30,6 +30,12 @@ describe InfoRequestEvent do ire.params.should == example_params end + it "should restore UTF8-heavy params stored under ruby 1.8 as UTF-8" do + ire = InfoRequestEvent.new + utf8_params = "--- \n:foo: !binary |\n 0KLQvtCz0LDRiCDR\n" + ire.params_yaml = utf8_params + ire.params[:foo].encoding.to_s.should == 'UTF-8' if ire.params[:foo].respond_to?(:encoding) + end end describe 'when deciding if it is indexed by search' do |