Skip to content

Commit

Permalink
Fix deploy spec
Browse files Browse the repository at this point in the history
  • Loading branch information
rayh committed Jul 16, 2013
1 parent 051ca98 commit f1416a8
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions spec/deploy_spec.rb
Expand Up @@ -47,18 +47,16 @@
end

it "should call curl with correct bulld paths" do
Xcode::Shell.should_receive(:execute) do |arg|
arg.is_a? Xcode::Shell::Command
arg.cmd.should == 'curl'
arg.args.should include('-F file=@"ipa path"')
arg.args.should include('-F dsym=@"dsym path"')
arg.args.should include("-F api_token='api token'")
arg.args.should include("-F team_token='team token'")

['{"response":"ok"}']
PTY.stub(:spawn).with do |cmd, &block|
cmd.should =~/^curl/
cmd.should =~/-F file=@"ipa path"/
cmd.should =~/-F dsym=@"dsym path"/
cmd.should =~/-F api_token='api token'/
cmd.should =~/-F team_token='team token'/
end
response = testflight.deploy
response['response'].should == 'ok'

testflight.deploy
# response['response'].should == 'ok'
end
end

Expand Down

0 comments on commit f1416a8

Please sign in to comment.