Sha256: 7af51cd9773b1d063199fc8fff8587b5f7e9c2bf5b7a683e5af640bb7da9b247

Contents?: true

Size: 790 Bytes

Versions: 1

Compression:

Stored size: 790 Bytes

Contents

require "spec_helper"

puts "This makes unstubbed API requests right now. Woo"

describe FreebaseImporters do
  it "should be a module" do
    expect(FreebaseImporters).to be_a_kind_of Module
  end

  describe FreebaseImporters::Book do
    let(:book) { FreebaseImporters::Book.first }
    it "should have a name" do
      expect(book.name).to match /\w+/
    end
  end

  describe FreebaseImporters::Car do
    let(:car) { FreebaseImporters::Car.first }
    it "should have images and thumbnails" do
      expect(car.thumbnail_urls).not_to be_empty
      expect(car.image_urls).not_to be_empty
    end
  end

  describe FreebaseImporters::Person do
    let(:person) { FreebaseImporters::Person.first }
    it "should have name" do
      expect(person.name).to match /\w+/
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
freebase-importers-0.0.1 spec/integration_spec.rb