Sha256: 375fe37f2750050312f69fbbcfcd41e0b4610f5125694931c352630ec7b8bf02
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' describe MailUp::Console::Email do before(:each){ init_mailup } %w(send).each do |method| it "should have a #{method} method" do @mailup.console.email.should respond_to(method.to_sym) end end it "should fire the correct POST request for send" do email = "test@email.com" id = rand(100).abs @mailup.console.email.api.should_receive(:post).with("#{@mailup.console.email.api.path}/Email/Send", {body: {:idMessage => id, :Email => email}}) @mailup.console.email.send(id, email) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailup-1.2.0 | spec/mailup/console/email_spec.rb |
mailup-1.1.0 | spec/mailup/console/email_spec.rb |