require 'bio-ucsc'
describe "Bio::Ucsc::Hg19::WgEncodeUwHistoneGm12878H3k36me3StdHotspotsRep2" do 

  describe "#find_by_interval" do
    context "given range chr1:1-800,000" do
      it 'returns a record (r.chrom == "chr1")' do
        Bio::Ucsc::Hg19::DBConnection.default
        Bio::Ucsc::Hg19::DBConnection.connect
        i = Bio::GenomicInterval.parse("chr1:1-800,000")
        r = Bio::Ucsc::Hg19::WgEncodeUwHistoneGm12878H3k36me3StdHotspotsRep2.find_by_interval(i)
        r.chrom.should == "chr1"
      end
    end
  end

end
