spec/nsicloudooo_spec.rb in nsicloudooo-0.4.1 vs spec/nsicloudooo_spec.rb in nsicloudooo-0.5.0

- old
+ new

@@ -99,9 +99,21 @@ expect { @nsicloudooo.granulate(:file => 'document', :filename => 'queue error' ).should be_false }.to raise_error(NSICloudooo::Errors::Client::QueueServiceConnectionError) end end + context "metadata extraction" do + it "can enqueue documents already stored to metadata extraction" do + response = @nsicloudooo.extract_metadata('some key', 'tcc') + response["doc_key"].should == 'some key' + end + + it "can access the metadata key when it's already extracted" do + response = @nsicloudooo.extract_metadata('some key', 'tcc') + @nsicloudooo.metadata_key_for(response["doc_key"]).should == "metadata for #{response["doc_key"]}" + end + end + context "get configuration" do before do NSICloudooo::Client.configure do user "why" password "chunky"