Sha256: fa40645f08d8baa79367f48d0a0a2ddac87fa321335731d6e4b4a7f51ca2b89d

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe Genability::Client do

  Genability::Configuration::VALID_FORMATS.each do |format|

    context ".new(:format => '#{format}')" do

      before(:all) do
        @options = {:format => format}.merge(configuration_defaults)
        @client = Genability::Client.new(@options)
      end

      context ".seasons" do

        use_vcr_cassette "seasons"

        it "should return a list of season groups" do
          seasons = @client.seasons(734)
          seasons.should be_an Array
          seasons.first.seasons.count.should == 2
        end

      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
genability-0.3.0 spec/client/season_spec.rb
genability-0.2.0 spec/client/season_spec.rb
genability-0.1.0 spec/client/season_spec.rb