Sha256: 3f5a877ed5460d33b6705471e5a5b54b37fdf50d11ed23deedddd8c1c043b39c
Contents?: true
Size: 1.24 KB
Versions: 5
Compression:
Stored size: 1.24 KB
Contents
describe DeployGate::Build do describe "#ios?" do it "when select workspace" do allow(DeployGate::Builds::Ios).to receive(:ios_root?).and_return(false) allow(DeployGate::Builds::Ios).to receive(:workspace?).and_return(true) allow(DeployGate::Builds::Ios).to receive(:project?).and_return(false) result = DeployGate::Build.ios?('path') expect(result).to be_truthy end it "when workspaces" do allow(DeployGate::Builds::Ios).to receive(:ios_root?).and_return(false) allow(DeployGate::Builds::Ios).to receive(:workspace?).and_return(false) allow(DeployGate::Builds::Ios).to receive(:project?).and_return(true) result = DeployGate::Build.ios?('path') expect(result).to be_truthy end it "not ios" do allow(DeployGate::Builds::Ios).to receive(:ios_root?).and_return(false) allow(DeployGate::Builds::Ios).to receive(:workspace?).and_return(false) allow(DeployGate::Builds::Ios).to receive(:project?).and_return(false) result = DeployGate::Build.ios?('path') expect(result).to be_falsey end end describe "#android?" do it "android not support" do result = DeployGate::Build.android?('path') expect(result).to be_falsey end end end
Version data entries
5 entries across 5 versions & 1 rubygems