Sha256: fe7e7e047acbfffc3d9de980bc0748fe838d8164a48be77729a68c9d31136a9c
Contents?: true
Size: 689 Bytes
Versions: 4
Compression:
Stored size: 689 Bytes
Contents
require 'spec_helper' describe "git" do include_context :capistrano its(:scm) { should == :git } its(:branch) { should == :master } its(:deploy_via) { should == :remote_cache } its(:git_shallow_clone) { should == true } its(:git_enable_submodules) { should == true } context 'without application set' do it 'call to repository should abort' do subject.set(:application) { raise "Not defined" } expect { subject[:repository] }.to raise_error("Not defined") end end context 'with application set' do it "should set proper repository" do subject.set(:application, 'my-app') subject.repository == 'git.o2h.cz:my-app' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
o2h-0.1.0 | spec/recipes/git_spec.rb |
o2h-0.0.5 | spec/recipes/git_spec.rb |
o2h-0.0.4 | spec/recipes/git_spec.rb |
o2h-0.0.3 | spec/recipes/git_spec.rb |