Sha256: 4c7e76dc7db17adcb7c018305d18b487fa42594395d5fcd3f3cad1704271149f
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
require 'spec_helper' describe "Dewey.convert" do before(:each) do stub_dewey_auth @txt = sample_file 'sample_document.txt' @doc = sample_file 'sample_document.doc' end it "should put, get, and delete" do Dewey.should_receive(:put).with(@txt, 'sample').and_return('document:12345') Dewey.should_receive(:get).with('document:12345', :doc).and_return(@doc) Dewey.should_receive(:delete).with('document:12345').and_return(true) Dewey.convert(@txt, :title => 'sample', :format => :doc).should be(@doc) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dewey-0.2.8 | spec/core/convert_spec.rb |