features/oembed.feature in embedly-0.4.0 vs features/oembed.feature in embedly-1.0.0
- old
+ new
@@ -3,11 +3,11 @@
As an embedly user
I want to call the the embedly api
Because I want and oembed for a specific url
Scenario Outline: Get the provider_url
- Given an embedly endpoint
+ Given an embedly api
When oembed is called with the <url> URL
Then the provider_url should be <provider_url>
Examples:
| url | provider_url |
@@ -16,11 +16,11 @@
| http://www.youtube.com/watch?v=Zk7dDekYej0 | http://www.youtube.com/ |
| http://yfrog.com/h7qqespj | http://yfrog.com |
Scenario Outline: Get the types
- Given an embedly endpoint
+ Given an embedly api
When oembed is called with the <url> URL
Then the type should be <type>
Examples:
| url | type |
@@ -29,32 +29,32 @@
| http://www.youtube.com/watch?v=Zk7dDekYej0 | video |
| http://yfrog.com/h7qqespj | photo |
Scenario Outline: Get the provider_url with force flag
- Given an embedly endpoint
+ Given an embedly api
When oembed is called with the <url> URL and force flag
Then the provider_url should be <provider_url>
Examples:
| url | provider_url |
| http://www.youtube.com/watch?v=Zk7dDekYej0 | http://www.youtube.com/ |
Scenario Outline: Get multiple provider_urls
- Given an embedly endpoint
+ Given an embedly api
When oembed is called with the <urls> URLs
Then provider_url should be <provider_urls>
Examples:
| urls | provider_urls |
| http://www.scribd.com/doc/13994900/Easter,http://www.scribd.com/doc/28452730/Easter-Cards | http://www.scribd.com/,http://www.scribd.com/ |
| http://www.youtube.com/watch?v=Zk7dDekYej0,http://yfrog.com/h7qqespj | http://www.youtube.com/,http://yfrog.com |
Scenario Outline: Get the provider_url with pro
- Given an embedly endpoint with key
+ Given an embedly api with key
When oembed is called with the <url> URL
Then the provider_url should be <provider_url>
Examples:
| url | provider_url |
@@ -62,11 +62,11 @@
| http://blog.doki-pen.org/cassandra-rules | http://posterous.com |
| http://www.guardian.co.uk/media/2011/jan/21/andy-coulson-phone-hacking-statement | http://www.guardian.co.uk/ |
Scenario Outline: Attempt to get 404 URL
- Given an embedly endpoint
+ Given an embedly api
When oembed is called with the <url> URL
Then type should be error
And error_code should be 404
And type should be error
@@ -76,11 +76,11 @@
| http://www.scribd.com/doc/zfldsf/asdfkljlas/klajsdlfkasdf |
| http://fav.me/alsfsdf |
Scenario Outline: Attempt multi get 404 URLs
- Given an embedly endpoint
+ Given an embedly api
When oembed is called with the <urls> URLs
Then error_code should be <errcode>
And type should be <types>
Examples:
@@ -89,13 +89,13 @@
| http://www.scribd.com/doc/lsbsdlfldsf/kl,http://www.scribd.com/doc/zasdf/asdfl | 404,404 | error,error |
| http://www.youtube.com/watch/zzzzasdf/kl,http://yfrog.com/h7qqespj | 404, | error,photo |
| http://yfrog.com/h7qqespj,http://www.scribd.com/doc/asdfasdfasdf | ,404 | photo,error |
Scenario Outline: Attempt at non-api service without key
- Given an embedly endpoint
+ Given an embedly api
When oembed is called with the <url> URL
Then error_code should be 401
- And error_message should be This service requires an Embedly Pro account
+ And error_message should be Embedly api key is required.
And type should be error
Examples:
| urls |
| http://hn.embed.ly/ |