Sha256: 9df39a5853271add0e852f834162fbd0b821dfe55763f8980d7fefe3637cf3be

Contents?: true

Size: 829 Bytes

Versions: 6

Compression:

Stored size: 829 Bytes

Contents

require_relative '../../../test_helper'

describe OdeonUk::Html::Website do
  include WebsiteFixturesHelper

  let(:described_class) { OdeonUk::Html::Website }

  describe '#cinema(id)' do
    subject { described_class.new.cinema(71) }

    before { stub_get('cinemas/odeon/71/', cinema_html(71)) }

    it 'returns a string' do
      subject.class.must_equal String
    end
  end

  describe '#sitemap' do
    subject { described_class.new.sitemap }

    before { stub_get('sitemap/', sitemap_html) }

    it 'returns a string' do
      subject.class.must_equal String
    end
  end

  describe '#showtimes(id)' do
    subject { described_class.new.showtimes(71) }

    before { stub_get('showtimes/week/71/?siteId=71', showtimes_html(71)) }

    it 'returns a string' do
      subject.class.must_equal String
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
odeon_uk-3.0.5 test/lib/odeon_uk/html/website_test.rb
odeon_uk-3.0.4 test/lib/odeon_uk/html/website_test.rb
odeon_uk-3.0.3 test/lib/odeon_uk/html/website_test.rb
odeon_uk-3.0.2 test/lib/odeon_uk/html/website_test.rb
odeon_uk-3.0.1 test/lib/odeon_uk/html/website_test.rb
odeon_uk-3.0.0 test/lib/odeon_uk/html/website_test.rb