Sha256: f0b9270028aa9d4371ad2710046ad2f23cca0e172540d0f200afc97f02c81aa7

Contents?: true

Size: 642 Bytes

Versions: 18

Compression:

Stored size: 642 Bytes

Contents

require 'spec_helper'

describe "git" do
  include_context :capistrano

  its(:scm) { should == :git }
  its(:branch) { should == :master }
  its(:deploy_via) { should == :remote_git }
  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

18 entries across 18 versions & 1 rubygems

Version Path
o2h-0.2.1 spec/recipes/git_spec.rb
o2h-0.2.0 spec/recipes/git_spec.rb
o2h-0.1.16 spec/recipes/git_spec.rb
o2h-0.1.15 spec/recipes/git_spec.rb
o2h-0.1.14 spec/recipes/git_spec.rb
o2h-0.1.13 spec/recipes/git_spec.rb
o2h-0.1.12 spec/recipes/git_spec.rb
o2h-0.1.11 spec/recipes/git_spec.rb
o2h-0.1.10 spec/recipes/git_spec.rb
o2h-0.1.9 spec/recipes/git_spec.rb
o2h-0.1.8 spec/recipes/git_spec.rb
o2h-0.1.7 spec/recipes/git_spec.rb
o2h-0.1.6 spec/recipes/git_spec.rb
o2h-0.1.5 spec/recipes/git_spec.rb
o2h-0.1.4 spec/recipes/git_spec.rb
o2h-0.1.3 spec/recipes/git_spec.rb
o2h-0.1.2 spec/recipes/git_spec.rb
o2h-0.1.1 spec/recipes/git_spec.rb