fixed failing posting image test

This commit is contained in:
morninlark 2014-03-19 11:11:23 +01:00
parent 7e7e854608
commit 0c95ada627
2 changed files with 4 additions and 4 deletions

View File

@ -1425,7 +1425,7 @@ class API1_2_1Test extends ServerSetup{
}
feature("We get one specific other bank account among the other accounts "){
scenario("we will get one random other bank account of a bank account", API1_2, GetOtherBankAccount, CurrentTest) {
scenario("we will get one random other bank account of a bank account", API1_2, GetOtherBankAccount) {
Given("We will use an access token")
val bankId = randomBank
val bankAccount : AccountJSON = randomPrivateAccount(bankId)
@ -4571,7 +4571,7 @@ class API1_2_1Test extends ServerSetup{
val bankAccount : AccountJSON = randomPrivateAccount(bankId)
val view = randomViewPermalink(bankId, bankAccount)
val transaction = randomTransaction(bankId, bankAccount.id, view)
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com")
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com/"+randomString(5))
When("the request is sent")
val postReply = postImageForOneTransaction(bankId, bankAccount.id, view, transaction.id, randomImage, None)
Then("we should get a 400 code")

View File

@ -4582,9 +4582,9 @@ class API1_2Test extends ServerSetup{
Given("We will use an access token")
val bankId = randomBank
val bankAccount : AccountJSON = randomPrivateAccount(bankId)
val view = randomViewPermalink(bankId, bankAccount)
val view = randomViewPermalink(bankId, bankAccount)
val transaction = randomTransaction(bankId, bankAccount.id, view)
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com")
val randomImage = PostTransactionImageJSON(randomString(5),"http://www.mysuperimage.com/"+randomString(5))
When("the request is sent")
val postReply = postImageForOneTransaction(bankId, bankAccount.id, randomString(5), transaction.id, randomImage, user1)
Then("we should get a 400 code")