diff options
Diffstat (limited to 'spec/models/info_request_event_spec.rb')
-rw-r--r-- | spec/models/info_request_event_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/info_request_event_spec.rb b/spec/models/info_request_event_spec.rb new file mode 100644 index 000000000..be3ec77c2 --- /dev/null +++ b/spec/models/info_request_event_spec.rb @@ -0,0 +1,14 @@ +require File.dirname(__FILE__) + '/../spec_helper' + +describe InfoRequestEvent, " when " do + + it "should convert event parameters into YAML and back successfully" do + ire = InfoRequestEvent.new + example_params = { :foo => 'this is stuff', :bar => 83, :humbug => "yikes!!!" } + ire.params = example_params + ire.params_yaml.should == example_params.to_yaml + ire.params.should == example_params + end + +end + |