Sha256: 9825f75e32ca64db07e9d8fdfae78a4f2f4f3cfdbe4a63707076c274c32fa47b

Contents?: true

Size: 619 Bytes

Versions: 16

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true
require_relative 'spec_helper.rb'

describe 'OMDB specifications' do
  VCR.configure do |c|
    c.cassette_library_dir = CASSETTES_FOLDER
    c.hook_into :webmock
  end

  before do
    VCR.insert_cassette CASSETTE_FILE_1, record: :new_episodes
    @movies = Movlog::Movies.find(s: OMDB_KEYWORD)
  end

  after do
    VCR.eject_cassette
  end

  it 'should get the data of a movie' do
    @movies.movies.length.must_be :>, 0
    @movies.num.to_i.must_be :>, 0
  end

  it 'should get the filming location of a movie' do
    @movies.movies.first.get_location.length.must_be :>, 0
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
movlog-0.4.2 spec/omdb_spec.rb
movlog-0.4.1 spec/omdb_spec.rb
movlog-0.4.0 spec/omdb_spec.rb
movlog-0.3.15 spec/omdb_spec.rb
movlog-0.3.14 spec/omdb_spec.rb
movlog-0.3.13 spec/omdb_spec.rb
movlog-0.3.12 spec/omdb_spec.rb
movlog-0.3.11 spec/omdb_spec.rb
movlog-0.3.10 spec/omdb_spec.rb
movlog-0.3.9 spec/omdb_spec.rb
movlog-0.3.8 spec/omdb_spec.rb
movlog-0.3.7 spec/omdb_spec.rb
movlog-0.3.6 spec/omdb_spec.rb
movlog-0.3.5 spec/omdb_spec.rb
movlog-0.3.4 spec/omdb_spec.rb
movlog-0.3.3 spec/omdb_spec.rb