Sha256: ee4d931c9173bd5938488ffc551d8e8fc561a0972126d1d29ce5b1b0c51c8ed5

Contents?: true

Size: 690 Bytes

Versions: 9

Compression:

Stored size: 690 Bytes

Contents

describe DeployGate::Xcode::MemberCenter do
  class SpaceshipClient
    def in_house?
    end
  end

  let(:email) { 'test@example.com' }
  let(:center) { DeployGate::Xcode::MemberCenter.new('com-example-team-id') }
  before do
    allow_any_instance_of(Spaceship::PortalClient).to receive(:login) {}
    allow_any_instance_of(Spaceship::PortalClient).to receive(:teams) {['team_name', 'team_id']}
    allow_any_instance_of(Spaceship::Launcher).to receive(:select_team) {}
    allow_any_instance_of(DeployGate::Xcode::MemberCenter).to receive(:input_email).and_return(email)
  end

  context '#initialize' do
    it "input email" do
      expect(center.email).to eq email
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
deploygate-0.9.1 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.9.0 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.8.6 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.8.5 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.8.4 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.8.3 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.8.2 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.8.1 spec/deploygate/xcode/member_center_spec.rb
deploygate-0.8.0 spec/deploygate/xcode/member_center_spec.rb