Sha256: caf773aaad4708da025111a84de7893f5b8bbf2259033e34bd76a958a55d4571
Contents?: true
Size: 743 Bytes
Versions: 6
Compression:
Stored size: 743 Bytes
Contents
require 'spec_helper' describe Mailroute::OutboundServer, :vcr => true do before { configure_mailroute } describe 'CRUD' do it 'should create, read, update and delete outbound servers' do domain = Mailroute::Domain.get(4555) server = Mailroute::OutboundServer.create(:server => '127.0.0.2', :domain => domain) server.id.should be server.domain.should == domain server.server.should == '127.0.0.2' Mailroute::OutboundServer.list.filter(:domain => 4555).should include server Mailroute::OutboundServer.delete(server.id) Mailroute::OutboundServer.list.filter(:domain => 4555).should_not include server Mailroute::OutboundServer.list.should_not include server end end end
Version data entries
6 entries across 6 versions & 1 rubygems