Sha256: f9ac2b8b62d3534672a9a5900ab51579a7d1d9daa12ac3008202467f5a443e8d
Contents?: true
Size: 477 Bytes
Versions: 7
Compression:
Stored size: 477 Bytes
Contents
require 'spec_helper' describe Vim::Jar::Importer::Github do context ".extract" do it "can extract infos from github page" do page_source = File.read(File.join(File.dirname(__FILE__),"pages","vim-rails-github.html")) infos = Vim::Jar::Importer::Github.extract(page_source) expect = { "url" => "git://github.com/tpope/vim-rails.git", "desc" => "rails.vim: Ruby on Rails power tools", "type" => "git" } infos.should == expect end end end
Version data entries
7 entries across 7 versions & 1 rubygems