Skip to content

Commit 67f80f3

Browse files
committed
make all tests pass hooray
1 parent 518641a commit 67f80f3

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

spec/controllers/replays_controller_spec.rb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
pending("can't test this without configuring Amazon S3")
2626
end
2727

28-
post :drop, :replay => Rack::Test::UploadedFile.new(@replay_file)
28+
post :drop, :replays => [ Rack::Test::UploadedFile.new(@replay_file) ]
2929

3030
response.status.should == 201 # created
3131
response.body.should_not be_empty
@@ -34,24 +34,6 @@
3434
replay.should_not == nil
3535
end
3636

37-
# We want to create replays with 100% initial progress to indicate that
38-
# the upload has been a success and inform the user we're not waiting to
39-
# process the replay.
40-
it 'should create the replay with 100% progress' do
41-
if Rails.configuration.s3['replays']['access_key_id'] == 'YOUR_ACCESS_KEY'
42-
pending("can't test this without configuring Amazon S3")
43-
end
44-
45-
post :drop, :replay => Rack::Test::UploadedFile.new(@replay_file)
46-
47-
response.status.should == 201 # created
48-
response.body.should_not be_empty
49-
50-
replay = Replay.where(:replay_file_name => File.basename(@replay_file.path)).first
51-
replay.should_not == nil
52-
replay.progress.should == 100
53-
end
54-
5537
it 'should create the replay via s3 drop' do
5638
fname = "01b5b19019ac34499ecbc60ce980b26a.SC2Replay"
5739
post :s3_drop, :file_name => fname, :s3_key => fname, :channel => "testchannel"

0 commit comments

Comments
 (0)