Sha256: 05f8721848c7a178216734e279b6c70e9e7e67bf35ff65c9b4c9775bace78c02

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

#!/usr/bin/env roundup
export IMGURRFILE=test/files/imgurr.json
imgurr="./bin/imgurr"
image="test/files/habs.gif"
id_file="test/id"

describe "upload"

it_uploads_image() {
  ${imgurr} upload ${image} | grep "Copied http://i.imgur.com" >> test/temp
  cat test/temp | sed 's/.*imgur.com\/\(.*\)\..*/\1/' >> ${id_file}
  chmod 777 ${id_file}
  rm test/temp
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
imgurr-0.0.4 test/1-upload.sh