Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Corsaro committed Jan 21, 2014
1 parent b77a77c commit 5841fe2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion features/command_line.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Command line runner
When I run `embedly_oembed http://lockerz.com/s/136425091`
Then the output should contain:
"""
"provider_url": "http://lockerz.com"
"provider_url": "http://pics.lockerz.com"
"""

Scenario: Run oembed command verbosely
Expand Down
2 changes: 1 addition & 1 deletion features/objectify.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Feature: Objectify

Examples:
| url | metadesc |
| http://lockerz.com/s/136425091 | Top finds from friends & celebrities. Get |
| http://lockerz.com/s/136425091 | Collect the things you love. Earn |
8 changes: 3 additions & 5 deletions features/oembed.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Feature: OEmbed
| http://www.youtube.com/watch?v=Zk7dDekYej0 | http://www.youtube.com/ |
| http://yfrog.com/h7qqespj | http://yfrog.com |
| http://blog.embed.ly/bob | http://tumblr.com |
| http://blog.doki-pen.org/cassandra-rules | http://blog.doki-pen.org |
| http://www.guardian.co.uk/media/2011/jan/21/andy-coulson-phone-hacking-statement | http://www.guardian.co.uk |


Scenario Outline: Get the types
Expand Down Expand Up @@ -65,7 +63,7 @@ Feature: OEmbed
| url |
| http://www.youtube.com/watch/is/a/bad/url |
| http://fav.me/alsfsdf |


Scenario Outline: Attempt multi get 404 URLs
Given an embedly api with key
Expand All @@ -77,8 +75,8 @@ Feature: OEmbed
| urls | errcode | types |
| http://www.youtube.com/watch/a/bassd/url,http://www.youtube.com/watch/ldf/asdlfj | 404,404 | error,error |
| http://www.youtube.com/watch/zzzzasdf/kl,http://yfrog.com/h7qqespj | 404, | error,photo |
| http://yfrog.com/h7qqespj,http://www.youtube.com/watch/asdfasdfasdf | ,404 | photo,error |
| http://yfrog.com/h7qqespj,http://www.youtube.com/watch/asdfasdf/asdf | ,404 | photo,error |

Scenario Outline: Attempt to get 414 URL
Given an embedly api with key
When oembed is called with the <url> URL
Expand Down

0 comments on commit 5841fe2

Please sign in to comment.