Sha256: 98a252691f93d7d41de0b1a04d52e3f873b1cb8f2e573f339468ed8092c9ac54

Contents?: true

Size: 439 Bytes

Versions: 6

Compression:

Stored size: 439 Bytes

Contents

# test_api.rb

require_relative '../test_helper'

describe TMDB::API do
  TMDB::API.api_key = API_KEY

  # TMDB::API::search(query, page, etc.)
  describe ".config" do
    it "should return the configuration data" do
      TMDB::API.config.must_be_instance_of Hashie::Mash
    end
  end

  describe ".genres" do
    it "should return an array of English Genres" do
      TMDB::API.genres.values.first.must_equal "Action"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tmdb-0.7.0 test/tmdb/test_api.rb
tmdb-0.6.1 test/tmdb/test_api.rb
tmdb-0.6.0 test/tmdb/test_api.rb
tmdb-0.4.1 test/tmdb/test_api.rb
tmdb-0.4.0 test/tmdb/test_api.rb
tmdb-0.3.0 test/tmdb/test_api.rb