Sha256: ce9c3cbf9063d0a1fb5df39a8cddfdb1763db89ecc5de4a8542f46977bb080c8

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 Bytes

Contents

require 'spec_helper'

describe Mailroute::NotificationDomainTask, :vcr => true do
  before { configure_mailroute }

  describe 'RU' do
    it 'should read and update tasks' do
      tasks = Mailroute::NotificationDomainTask.list.filter(:domain => 4157)
      tasks.should_not be_empty

      task = tasks.first

      task.hour.should == 9
      task.hour = 8
      task.save!
      task.reload.hour.should == 8
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mailroute-0.0.6 spec/lib/mailroute/models/notification_domain_task_spec.rb
mailroute-0.0.5 spec/lib/mailroute/models/notification_domain_task_spec.rb
mailroute-0.0.4 spec/lib/mailroute/models/notification_domain_task_spec.rb
mailroute-0.0.3 spec/lib/mailroute/models/notification_domain_task_spec.rb
mailroute-0.0.2 spec/lib/mailroute/models/notification_domain_task_spec.rb
mailroute-0.0.1 spec/lib/mailroute/models/notification_domain_task_spec.rb