Sha256: 7dadce05188a58e755bd5656d9a3d8294b6df69b3485cf65b1b0864654f22b62

Contents?: true

Size: 628 Bytes

Versions: 2

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

describe Itis do 

	it "should return some results if you do query" do
		out = Itis.new.search("Oto Brglez")
		out.should_not be_nil
		out.should be_an_instance_of(Array)
		out.size.should == 1

		out.first.to_s.should =~ /Oto/i
		out.first.url.should =~ /person/i
		out.first.should be_person
	end

	it "should do some searches with more results" do
		out = Itis.search("Janez Novak")
		out.size.should_not == 0
		out.first.should_not be_person
	end

	it "has the ability to do contact lookup" do
		out = Itis.new.search("Oto Brglez").first
		out.should_not be_nil
		out.phones.size.should == 2
	end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
itis-0.0.2 spec/itis_spec.rb
itis-0.0.1 spec/itis_spec.rb