Sha256: fd669dd4c5c225906431ffef7e9f53785ba2cddef2e30c00c06cc20f37d3eba4

Contents?: true

Size: 481 Bytes

Versions: 13

Compression:

Stored size: 481 Bytes

Contents

describe Hubspot::Topic do
  before do
    Hubspot.configure(hapikey: "demo")
  end

  describe ".list" do
    cassette "topics_list"
    let(:topics) { Hubspot::Topic.list }

    it "should have a list of topics" do
      topics.count.should be(3)
    end
  end

  describe ".find_by_topic_id" do
    cassette "topics_list"

    it "should find a specific topic" do
      topic = Hubspot::Topic.find_by_topic_id(349001328)
      topic['id'].should eq(349001328)
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
hubspot-api-ruby-0.8.1 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.9.0 spec/lib/hubspot/topic_spec.rb
hubspot-api-ruby-0.8.0 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.8.1 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.8.0 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.7.0 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.6.1 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.6.0 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.5.0 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.4.0 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.3.0 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.2.1 spec/lib/hubspot/topic_spec.rb
hubspot-ruby-0.2.0 spec/lib/hubspot/topic_spec.rb