Skip to content

Commit

Permalink
Add integration test for serialization with Marshal
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 19, 2013
1 parent 670b883 commit 0cdfc8a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/integration/serializable_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# encoding: utf-8

require 'spec_helper'

class Serializable
include Memoizable
def method; end
memoize :method
end

describe 'A serializable object' do
let(:serializable) do
Serializable.new
end
it 'is serializable with Marshal' do
serializable.method # Call the method to trigger lazy memoization
expect { Marshal.dump(serializable) }.not_to raise_error
end
end

0 comments on commit 0cdfc8a

Please sign in to comment.