Sha256: 16224d2d19555da9cade9d7239bb254d9b724d786f35cbc754b5dbc1ab7120c7

Contents?: true

Size: 960 Bytes

Versions: 2

Compression:

Stored size: 960 Bytes

Contents

require './lib/ratlas'
require 'rspec'
require 'rspec-expectations'



describe Ratlas::Discover do
  
  context "when used" do
    
    it "should be able to tell me about drama on the bbc" do
      
      Ratlas::Discover.find(:genre => 'drama').and(:publisher => 'bbc.co.uk').each do |n|
        n.title.class.should == String
      end
    end
    
  end
  
end


describe Ratlas::Search do
  
  context "when used" do
    
    it "should be able to tell glee" do
      
      Ratlas::Search.find(:q => 'glee').each do |n|
        n.title.class.should == String
      end
      
    end
    
  end
  
end


describe Ratlas::Schedule do
  
  context "when used" do
    
    it "should be able to tell me about a url" do
      
      Ratlas::Schedule.find(:all).where(:from => Time.now.to_i, :to=> Time.now.to_i + 3600).and(:channel => 'bbcone', :publisher => 'bbc.co.uk').each do |n|
        n.items.class.should == Array
      end
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ratlas-0.1.2 spec/live_container_spec.rb
ratlas-0.1.1 spec/live_container_spec.rb