diff --git a/config/initializers/oembed.rb b/config/initializers/oembed.rb index bf0fc2092..e8334cdad 100644 --- a/config/initializers/oembed.rb +++ b/config/initializers/oembed.rb @@ -15,8 +15,6 @@ oembed_provider_list = [ OEmbed::Providers::Flickr ] -OEmbed::Providers::Youtube.endpoint += "?scheme=https" - oembed_providers = YAML.load_file(Rails.root.join("config", "oembed_providers.yml")) oembed_providers.each do |provider_name, provider| diff --git a/spec/controllers/jasmine_fixtures/aspects_spec.rb b/spec/controllers/jasmine_fixtures/aspects_spec.rb index 315d46057..bdbf026ba 100644 --- a/spec/controllers/jasmine_fixtures/aspects_spec.rb +++ b/spec/controllers/jasmine_fixtures/aspects_spec.rb @@ -68,7 +68,7 @@ describe StreamsController, :type => :controller do it "generates a jasmine fixture with a post containing a video", :fixture => true do stub_request( :get, - "http://www.youtube.com/oembed?format=json&frame=1&iframe=1&maxheight=420&maxwidth=420&scheme=https?scheme=https&url=http://www.youtube.com/watch?v=UYrkQL1bX4A" + "http://www.youtube.com/oembed?format=json&frame=1&iframe=1&maxheight=420&maxwidth=420&scheme=https&url=http://www.youtube.com/watch?v=UYrkQL1bX4A" ).with( :headers => {'Accept'=>'*/*'} ).to_return(