Sha256: 3574cfedae1e612377e02dd730ee576c271cca9ad29e83e8ce0678e559c9eb6d

Contents?: true

Size: 808 Bytes

Versions: 7

Compression:

Stored size: 808 Bytes

Contents

require 'spec_helper'

describe Balanced::Callback, :vcr do
  before do
    api_key = Balanced::ApiKey.new.save
    Balanced.configure api_key.secret
    @marketplace = Balanced::Marketplace.new.save
  end

  describe 'create', :vcr do
    before do
      @callback = Balanced::Callback.new(
          :url => 'http://www.example.com/balanced_callback'
      ).save
    end

    context 'check url' do
      subject { @callback.url }
      it { should eql 'http://www.example.com/balanced_callback' }
    end

  end

  describe 'delete', :vcr do
    before do
      @callback = Balanced::Callback.new(
          :url => 'http://www.example.com/balanced_callback'
      ).save
    end

    context 'delete' do
      it 'should delete without an error' do
        @callback.destroy
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
balanced-1.2.1 spec/balanced/resources/callback_spec.rb
balanced-1.1.1 spec/balanced/resources/callback_spec.rb
balanced-1.1.0 spec/balanced/resources/callback_spec.rb
balanced-1.0.2 spec/balanced/resources/callback_spec.rb
balanced-1.0.1 spec/balanced/resources/callback_spec.rb
balanced-1.0 spec/balanced/resources/callback_spec.rb
balanced-1.0.beta1 spec/balanced/resources/callback_spec.rb