Sha256: 8afec9129cbfbaa7be0d07b98945813eb4499d67f84882f7ef378de27e77588f

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe Locomotive::Coal::Resources::Contents do

  before { VCR.insert_cassette 'contents', record: :new_episodes }
  after  { VCR.eject_cassette }

  let(:uri)       { TEST_API_URI }
  let(:token)     { api_token }
  let(:contents)  { described_class.new(uri, token) }

  describe '#by_slug' do
    subject { contents.by_slug(:bands) }
    it { expect(subject).not_to eq nil }
  end

  describe '#method_missing' do
    subject { contents.bands }
    it { expect(subject).not_to eq nil }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotivecms_coal-1.0.0.pre.alpha.1 spec/integration/resources/contents_spec.rb
locomotivecms_coal-1.0.0.pre.alpha spec/integration/resources/contents_spec.rb