Sha256: 2b7e9a3a5ad4528ea43628c9c7479dbf21c4bc2a44b99124bfe91f09a407cb9d

Contents?: true

Size: 476 Bytes

Versions: 18

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'

describe Onebox::Engine::TwitchStreamOnebox do

  it "has the iframe with the correct channel" do
    expect(Onebox.preview('https://www.twitch.tv/theduckie908').to_s).to match(/<iframe src="\/\/player\.twitch\.tv\/\?channel=theduckie908/)

  end

  it "works in the twitch new interface/url" do
    expect(Onebox.preview('https://go.twitch.tv/admiralbulldog').to_s).to match(/<iframe src="\/\/player\.twitch\.tv\/\?channel=admiralbulldog/)

  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
onebox-1.8.39 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.38 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.36 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.35 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.34 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.33 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.32 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.31 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.30 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.29 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.28 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.27 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.26 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.25 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.24 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.23 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.22 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb
onebox-1.8.21 spec/lib/onebox/engine/twitch_stream_onebox_spec.rb