Sha256: 94327082f544cbd8b4d6b983cf1587bb587044892a335e224772377b4494d2a1

Contents?: true

Size: 732 Bytes

Versions: 2

Compression:

Stored size: 732 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe "Searching" do
  it "should not blow up" do
    results = @satisfaction.search.for_likely_matches_to('Cyberdyne')
  end
  
  it "should be a well-formed hash with default keys" do
    results = @satisfaction.search.for_likely_matches_to('Cyberdyne')
    results.should_not be_empty
    results.class.should == Hash
    results.keys.should include('products')
    results.keys.should include('companies')
    #raise results.inspect
  end
  
  it "should put the results into a set of arrays keyed by category" do
    results = @satisfaction.search.for_likely_matches_to('Cyberdyne')

    c = results['companies']
    c.class.should == Array
    include('companies')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pius-ruby-satisfaction-0.3.0 spec/search_spec.rb
pius-ruby-satisfaction-0.4.0 spec/search_spec.rb