Sha256: 3c55e6b9cb1ea3a068290a0664d8f2d32104be28ac7e0aaa2a74db05b00bd780

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

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

describe  Sendcloud::Mail do

  describe 'send' do

    it 'should return success' do
      response = Sendcloud::Mail.send({
                               :to => '272056334@qq.com',
                               :from => 'notification@78jian.com',
                               :subject => 'test',
                               :html => 'rspec test'
                           })
      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/mail_spec.rb
sendcloud-0.2.0 spec/mail_spec.rb
sendcloud-0.1.0 spec/mail_spec.rb