Sha256: b45f8c59f36150b617772891b77c393d134a6d02b1d13611e76d3bb6c13a2cf7
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
require 'spec_helper' require 'borg/configuration/assimilator' describe Borg::Configuration::Assimilator do it "should be included into Capistrano::Configuration" do Capistrano::Configuration.new.should respond_to :assimilate end context "when assimilate('borg') is called" do subject { Capistrano::Configuration.new } it "should loads all the initializers" do Dir["cap/initializers/**/*.rb"].each do |file| subject.should_receive(:load).with(File.expand_path(file)) end subject.assimilate ('borg-rb') end it "should add the cap directory to teh load path" do Dir.stub("[]").and_return([]) lambda { subject.assimilate ('borg-rb') }.should change(subject.load_paths, :count).by 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
borg-rb-0.0.2 | spec/lib/borg/configuration/assimilator_spec.rb |
borg-rb-0.0.1 | spec/lib/borg/configuration/assimilator_spec.rb |