Skip to content

Commit

Permalink
Raise errors on deprecations!
Browse files Browse the repository at this point in the history
...because I've removed all deprecated syntax calls :-D
  • Loading branch information
metavida committed Apr 27, 2015
1 parent 96eec59 commit c0057fe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/spec_helper.rb
Expand Up @@ -2,6 +2,12 @@
require 'vcr'
require File.dirname(__FILE__) + '/../lib/oembed'

RSpec.configure do |config|
config.raise_errors_for_deprecations!
config.tty = true
config.color = true
end

module OEmbedSpecHelper
EXAMPLE = YAML.load_file(File.expand_path(File.join(__FILE__, '../spec_helper_examples.yml'))) unless defined?(EXAMPLE)

Expand All @@ -27,7 +33,7 @@ def all_example_urls(*fallback)

results
end

def example_body(site)
EXAMPLE[site][:body]
end
Expand Down Expand Up @@ -62,7 +68,7 @@ def valid_response(format)
XML
end
end

def invalid_response(case_name, format)
format = format.to_s
valid = valid_response(format)
Expand Down

0 comments on commit c0057fe

Please sign in to comment.