Sha256: 38a1a70273a07b80ce439847e500b0ab1fb1019d7e38156693a38162a01c6ceb

Contents?: true

Size: 779 Bytes

Versions: 44

Compression:

Stored size: 779 Bytes

Contents

describe FbGraph::AdKeywordValid, '.search' do
  it 'should perform a search' do
    mock_graph :get, 'search', 'ad_keyword_valids/tige_search', :params => {:keyword_list => 'tige', :type => 'adkeywordvalid'} do
      valid_results = FbGraph::AdKeywordValid.search('tige')

      valid_results.size.should == 1
      valid_results.first.should be_instance_of(FbGraph::AdKeywordValid)
      valid_results.first.should_not be_valid
      valid_results.first.name.should == "tige"

      valid_results.first.suggestions.size.should == 1
      valid_results.first.suggestions.first.should be_instance_of(FbGraph::AdKeyword)
      valid_results.first.suggestions.first.name.should == "#Tigerstyle"
      valid_results.first.suggestions.first.should be_topic_keyword
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
fb_graph-2.1.10 spec/fb_graph/ad_keyword_valid_spec.rb
fb_graph-2.1.9 spec/fb_graph/ad_keyword_valid_spec.rb
fb_graph-2.1.8 spec/fb_graph/ad_keyword_valid_spec.rb
fb_graph-2.1.7 spec/fb_graph/ad_keyword_valid_spec.rb