Sha256: c8bd71525c5502fb05515190682c981df80cd9cd1b42d1d7af04bfa3bb698795

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'

module Peddler
  module Handlers    
    describe TabDelimitedHandler do
      it "parses tab-delimited text" do
        text = Peddler::Handlers::TabDelimitedHandler.decode_response("title\tautor\nA Thousand Plateaus\tGilles Deleuze\n")
        text[0].title.should == 'A Thousand Plateaus'
      end
    end
  end
end 

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.3.1 spec/peddler/handlers_spec.rb
peddler-0.3.0 spec/peddler/handlers_spec.rb