Sha256: aa3f0630f9b45dcd0706a43e83f875204e7876f4f74ecf64b2c6478c0a2999c8

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'

module HerokuSan
  module Deploy
    describe Rails do
      let(:stage) { HerokuSan::Stage.new('test', {"app" => "awesomeapp", "deploy" => 'HerokuSan::Deploy::Rails'}) }

      it "calls push, rake db:migrate & restart" do
        subject = described_class.new(stage, {})
        stage.should_receive(:push) { "pushed" } # "mock" super
        stage.should_receive(:rake).with('db:migrate') { "migrated" }
        stage.should_receive(:restart) { "restarted" }
        subject.deploy
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
heroku_san-3.0.4 spec/heroku_san/deploy/rails_spec.rb
heroku_san-3.0.3 spec/heroku_san/deploy/rails_spec.rb
heroku_san-3.0.2 spec/heroku_san/deploy/rails_spec.rb
heroku_san-3.0.1 spec/heroku_san/deploy/rails_spec.rb