Sha256: fb61ee5ef0b32fd29d1faee111185179899f1d65702fb3b2eec4f230bd1cd9d2

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

require File.expand_path('../spec_helper.rb', __FILE__)

describe  Sendcloud::Stats do

  describe 'get' do
    it 'should return success' do
      response = Sendcloud::Unsubscribes.get(days: 2)
      expect(response['message']).to eq('success')
    end
  end

  describe 'add' do
    it 'should return success' do
      response = Sendcloud::Unsubscribes.get(email: 'test-delete@test.org')
      expect(response['message']).to eq('success')
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sendcloud-0.2.1 spec/unsubscribes_spec.rb
sendcloud-0.2.0 spec/unsubscribes_spec.rb
sendcloud-0.1.0 spec/unsubscribes_spec.rb