Sha256: cbf06598330484c5a06ef6e5dc2999d7c03eb38c41e6b33cd53ab1b15c19b273

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

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

describe "info"

it_gets_image_info() {
  ${imgurr} info `cat ${id_file}` | grep -m 1 "Width      : 48 px"
}

it_gets_image_info_from_url() {
  ${imgurr} info http://i.imgur.com/2KxrTAK.jpg | grep -m 1 "Width      : 960 px"
}

it_gets_image_info_from_url_with_title() {
  ${imgurr} info http://i.imgur.com/Wk1iPej.jpg | grep -m 1 "Title      : Imgurr Test"
}

it_gets_image_info_from_url_with_description() {
  ${imgurr} info http://i.imgur.com/Wk1iPej.jpg | grep -m 1 "Desc       : Imgurr Test"
}

it_lists_uploaded_images() {
  ${imgurr} list | grep -m 1 `cat ${id_file}`
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
imgurr-1.0.0 test/2-info.sh