Created
January 20, 2011 20:49
-
-
Save dokipen/788630 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(embedly)15:44:55 [doki_pen@wilkenfeld ~/src/embedly-ruby][master]$ cucumber | |
Using the default profile... | |
Feature: OEmbed | |
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 # features/oembed.feature:7 | |
Given an embedly endpoint # features/steps/api_steps.rb:4 | |
When oembed is called with the <url> URL # features/steps/api_steps.rb:11 | |
Then the provider_url should be <provider_url> # features/steps/api_steps.rb:23 | |
Examples: | |
| url | provider_url | | |
| http://www.scribd.com/doc/13994900/Easter | http://www.scribd.com/ | | |
| http://www.scribd.com/doc/28452730/Easter-Cards | http://www.scribd.com/ | | |
| http://www.youtube.com/watch?v=Zk7dDekYej0 | http://www.youtube.com/ | | |
| http://tweetphoto.com/14784358 | http://plixi.com | | |
Scenario Outline: Get the provider_url with force flag # features/oembed.feature:20 | |
Given an embedly endpoint # features/steps/api_steps.rb:4 | |
When oembed is called with the <url> URL and force flag # features/steps/api_steps.rb:11 | |
Then the provider_url should be <provider_url> # features/steps/api_steps.rb:23 | |
Examples: | |
| url | provider_url | | |
| http://www.youtube.com/watch?v=Zk7dDekYej0 | http://www.youtube.com/ | | |
Scenario Outline: Get multiple provider_urls # features/oembed.feature:30 | |
Given an embedly endpoint # features/steps/api_steps.rb:4 | |
When oembed is called with the <urls> URLs # features/steps/api_steps.rb:11 | |
Then provider_url should be <provider_urls> # features/steps/api_steps.rb:23 | |
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://plixi.com/p/16044847 | http://www.youtube.com/,http://plixi.com | | |
Scenario Outline: Get the provider_url with pro # features/oembed.feature:41 | |
Given an embedly endpoint with 3ea4fc74fd6d11df84894040444cdc60 key # features/steps/api_steps.rb:4 | |
When oembed is called with the <url> URL # features/steps/api_steps.rb:11 | |
Then the provider_url should be <provider_url> # features/steps/api_steps.rb:23 | |
Examples: | |
| url | provider_url | | |
| http://blog.embed.ly/bob | http://posterous.com | | |
| http://blog.doki-pen.org/cassandra-rules | http://posterous.com | | |
Scenario Outline: Attempt to get 404 URL # features/oembed.feature:52 | |
Given an embedly endpoint # features/steps/api_steps.rb:4 | |
When oembed is called with the <url> URLs # features/steps/api_steps.rb:11 | |
Then type should be error # features/steps/api_steps.rb:23 | |
And error_code should be 404 # features/steps/api_steps.rb:23 | |
Examples: | |
| url | | |
| http://www.youtube.com/this/is/a/bad/url | | |
10 scenarios (10 passed) | |
31 steps (31 passed) | |
0m15.572s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment