spec/omdb_spec.rb in movlog-0.1.0 vs spec/omdb_spec.rb in movlog-0.2.0

- old
+ new

@@ -3,21 +3,25 @@ describe 'OMDB specifications' do VCR.configure do |c| c.cassette_library_dir = CASSETTES_FOLDER c.hook_into :webmock - c.filter_sensitive_data('<KEYWORD>') { ENV['OMDB_KEYWORD'] } end before do VCR.insert_cassette CASSETTE_FILE_1, record: :new_episodes + @movie = Movlog::Movie.find(t: OMDB_KEYWORD) end after do VCR.eject_cassette end - it 'should get the IMDB ID of a movie' do - movie = Movlog::Movie.find(t: ENV['OMDB_KEYWORD']) - movie.imdb_id.length.must_be :>, 0 + it 'should get the data of a movie' do + @movie.imdb_id.length.must_be :>, 0 + @movie.title.length.must_be :>, 0 + @movie.year.length.must_be :>, 0 + @movie.actors.length.must_be :>, 0 + @movie.poster.length.must_be :>, 0 + @movie.plot.length.must_be :>, 0 end end