Sha256: 92ad48c472c015fe4ab9d524fe62063881971f78c9effc5edddaa42dc64eff82

Contents?: true

Size: 732 Bytes

Versions: 6

Compression:

Stored size: 732 Bytes

Contents

require "spec_helper"
require 'stringio'

describe WhatsOnNetflix do
  
  #disables long lists of output
  before do
    $stdout = StringIO.new
  end
  after(:all) do
    $stdout = STDOUT
  end
  
  it "has a version number" do
    expect(WhatsOnNetflix::VERSION).not_to be nil
  end
  
  it "lists Coming Soon" do
    WhatsOnNetflix::CLI.new
    expect(WhatsOnNetflix::ComingSoon.list).not_to be nil
  end
  
  it "lists Coming Soon movie info" do
    expect(WhatsOnNetflix::ComingSoon.item("1")).not_to be nil
  end
  
  it "lists Leaving Soon" do
    expect(WhatsOnNetflix::LeavingSoon.list).not_to be nil
  end
  
  it "lists Leaving Soon movie info" do
    expect(WhatsOnNetflix::LeavingSoon.item("1")).not_to be nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whats-on-netflix-0.1.7 spec/01_whats_on_netflix_spec.rb
whats-on-netflix-0.1.5 spec/01_whats_on_netflix_spec.rb
whats-on-netflix-0.1.4 spec/01_whats_on_netflix_spec.rb
whats-on-netflix-0.1.3 spec/01_whats_on_netflix_spec.rb
whats-on-netflix-0.1.2 spec/01_whats_on_netflix_spec.rb
whats-on-netflix-0.1.1 spec/01_whats_on_netflix_spec.rb