Sha256: d793a717701f1b29c9e613baa84cd6940adeb20c5e9d50f59ffd13100b803585

Contents?: true

Size: 570 Bytes

Versions: 7

Compression:

Stored size: 570 Bytes

Contents

require "spec_helper"

describe ORS::Commands::Update do

  context "#run" do
    it "should update code, bundle install, and set up cron" do
      stub(subject).all_servers { :all_servers }
      stub(subject).ruby_servers { :ruby_servers }
      stub(subject).cron_server { :cron_server }

      mock(subject).info /updating/
      mock(subject).execute_in_parallel(:all_servers)
      mock(subject).execute_in_parallel(:ruby_servers)
      mock(subject).execute_command(:cron_server, is_a(String), is_a(String), is_a(String))

      subject.execute
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ors-0.2.4 spec/ors/commands/update_spec.rb
ors-0.2.3 spec/ors/commands/update_spec.rb
ors-0.2.2 spec/ors/commands/update_spec.rb
ors-0.2.1 spec/ors/commands/update_spec.rb
ors-0.2.0 spec/ors/commands/update_spec.rb
ors-0.1.8 spec/ors/commands/update_spec.rb
ors-0.1.7 spec/ors/commands/update_spec.rb