Sha256: 497996b78d85ea6fc5e454edb169f47ae99831a0649a20cd34342844346a7481
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper.rb')) class FetchTrailersWithExpansionEnabled < Test::Unit::TestCase def setup register_api_url_stubs end test "find with expansion enabled should return trailers" do movie = TmdbMovie.find(:id => 187) assert_not_nil movie.trailers assert_equal movie.trailers[0].source, 'SUXWAEX2jlg' end test "find without expansion enabled should not return trailers" do movie = TmdbMovie.find :id => 187, expand_results: false assert_nil movie.trailers end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-tmdb3-0.3.4 | test/unit/fetch_trailers_with_expansion_enabled_test.rb |