Sha256: f975d74dcaa259fd046c8b6f7361c85e66792724d77e5a430bbf7975fde131ef

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

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

describe Eucalyptus::Insight do
  describe '.known_fields' do
    it 'returns an object which responds to available fields' do
      VCR.use_cassette('account_insights') do
        account = Eucalyptus::Account.all.last
        insights = account.insights.first

        expect(insights).to respond_to :clicks
        expect(insights).to respond_to :cpc
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eucalyptus-1.2.2 spec/eucalyptus/insight_spec.rb
eucalyptus-1.2.1 spec/eucalyptus/insight_spec.rb
eucalyptus-1.2.0 spec/eucalyptus/insight_spec.rb
eucalyptus-1.1.0 spec/eucalyptus/insight_spec.rb
eucalyptus-1.0.0 spec/eucalyptus/insight_spec.rb