Sha256: 6cbe298cbbc8c84773a6c4dd1003e0e21778b5be6187a5670525d0af52902ddd

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

require 'spec_helper'

describe Fletcher::Data do
  describe "open-uri" do
    it "tells me how long it taks to open an uri file" do 
      #puts benchmark{ file = open(Factory(:valid_model).url)}.to_s  
    end 
  end
  
  describe "read" do 
    it "should return a valid document" do 
      doc = Fletcher::Data.read(Factory(:valid).url)
    end
    
    # This is just a rough indicator of how long a data should take to download
    it "shouldn't take too long" do 
      # benchmark{ doc = Fletcher::Data.read(Factory(:valid_model).url)}.should_not be_slower_than(5.0)
    end    
  end
end  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fletcher-0.4.2 spec/lib/fletcher/data_spec.rb
fletcher-0.4.1 spec/lib/fletcher/data_spec.rb
fletcher-0.4.0 spec/lib/fletcher/data_spec.rb