Sha256: 9f3de4bd3ea6d810f4745adad518ad2dd25f4b3c36503a3436a207b37ac427ce

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

require 'spec_helper'

describe Hawkei::Batch do

  describe '.create' do
    let(:response) { double('Hawkei::Request', body:  "{\"object\":\"batch\",\"id\":41}") }
    before { allow(Hawkei::Request).to receive(:execute).and_return(response) }

    subject(:create) { Hawkei::Batch.create(data: []) }

    it { is_expected.to be_successful }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hawkei-1.1.0 spec/lib/hawkei/batch_spec.rb
hawkei-1.0.0 spec/lib/hawkei/batch_spec.rb