spec/lib/extensions/hash_spec.rb in picky-3.0.0.pre5 vs spec/lib/extensions/hash_spec.rb in picky-3.0.0
- old
+ new
@@ -20,18 +20,18 @@
describe 'dump_to_marshalled' do
it 'uses the right file' do
File.should_receive(:open).once.with('some/file/path.dump', 'w:binary')
- {}.dump_marshalled 'some/file/path.dump'
+ {}.dump_marshal 'some/file/path.dump'
end
it "uses the right encoder" do
file = stub :file
File.should_receive(:open).and_yield file
Marshal.should_receive(:dump).once.with({ :some => :hash }, file)
- { :some => :hash }.dump_marshalled 'unimportant'
+ { :some => :hash }.dump_marshal 'unimportant'
end
end
describe "to_json" do
before(:each) do
\ No newline at end of file