Sha256: 3f7f1b6f49d2619b8327109a8a6744c2c096bfbbe1adc3f51dbb0fc672dd66f2
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
require 'spec_helper' describe "When loading an installer by URL" do include Vimmer context "for a Github URL" do subject { Installers.for_url("https://github.com/foo/bar.git") } it { should == Installers::Github } end context "for a Vim.org URL" do before do Installers::VimDotOrg.stubs(:for_url).returns(Installers::VimDotOrg) end subject { Installers.for_url("http://vim.org/scripts/script.php?script_id=1234") } it { should == Installers::VimDotOrg } end context "for an unrecognized URL" do subject { Installers.for_url("http://foo.com/bar") } it { lambda { subject }.should raise_error(Vimmer::InstallerNotFoundError) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vimmer-0.2.0 | spec/install/load_installer_spec.rb |