Sha256: 1331a49797af803c32fe0c6be820afcd039859b27c7faee9410172a430580560

Contents?: true

Size: 1.32 KB

Versions: 39

Compression:

Stored size: 1.32 KB

Contents

describe DeployGate::Project do
  describe "#ios?" do
    it "when select workspace" do
      allow(DeployGate::Xcode::Ios).to receive(:ios_root?).and_return(false)
      allow(DeployGate::Xcode::Ios).to receive(:workspace?).and_return(true)
      allow(DeployGate::Xcode::Ios).to receive(:project?).and_return(false)

      result = DeployGate::Project.ios?('path')
      expect(result).to be_truthy
    end

    it "when workspaces" do
      allow(DeployGate::Xcode::Ios).to receive(:ios_root?).and_return(false)
      allow(DeployGate::Xcode::Ios).to receive(:workspace?).and_return(false)
      allow(DeployGate::Xcode::Ios).to receive(:project?).and_return(true)

      result = DeployGate::Project.ios?('path')
      expect(result).to be_truthy
    end

    it "not ios" do
      allow(DeployGate::Xcode::Ios).to receive(:ios_root?).and_return(false)
      allow(DeployGate::Xcode::Ios).to receive(:workspace?).and_return(false)
      allow(DeployGate::Xcode::Ios).to receive(:project?).and_return(false)

      result = DeployGate::Project.ios?('path')
      expect(result).to be_falsey
    end
  end

  describe "#android?" do
    it "android project" do
      allow(DeployGate::Android::GradleProject).to receive(:root_dir?).and_return(true)

      result = DeployGate::Project.android?('path')
      expect(result).to be_truthy
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
deploygate-0.9.1 spec/deploygate/project_spec.rb
deploygate-0.9.0 spec/deploygate/project_spec.rb
deploygate-0.8.6 spec/deploygate/project_spec.rb
deploygate-0.8.5 spec/deploygate/project_spec.rb
deploygate-0.8.4 spec/deploygate/project_spec.rb
deploygate-0.8.3 spec/deploygate/project_spec.rb
deploygate-0.8.2 spec/deploygate/project_spec.rb
deploygate-0.8.1 spec/deploygate/project_spec.rb
deploygate-0.8.0 spec/deploygate/project_spec.rb
deploygate-0.7.0 spec/deploygate/project_spec.rb
deploygate-0.6.8 spec/deploygate/project_spec.rb
deploygate-0.6.7 spec/deploygate/project_spec.rb
deploygate-0.6.6 spec/deploygate/project_spec.rb
deploygate-0.6.5 spec/deploygate/project_spec.rb
deploygate-0.6.4 spec/deploygate/project_spec.rb
deploygate-0.6.3 spec/deploygate/project_spec.rb
deploygate-0.6.2 spec/deploygate/project_spec.rb
deploygate-0.6.1 spec/deploygate/project_spec.rb
deploygate-0.6.0 spec/deploygate/project_spec.rb
deploygate-0.5.6 spec/deploygate/project_spec.rb