Sha256: e5958808183796d7458acf15a58313f117ed2a317406814086089b97160d0b13

Contents?: true

Size: 375 Bytes

Versions: 8

Compression:

Stored size: 375 Bytes

Contents

require 'spec_helper'

describe 'Mina' do
  it '#to should work' do
    rake {
      task :deploy do
        queue 'git clone'

        to :restart do
          queue 'touch tmp/restart.txt'
        end
      end
    }

    rake { invoke :deploy }

    expect(rake.commands).to eq(['git clone'])
    expect(rake.commands(:restart)).to eq(['touch tmp/restart.txt'])
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
mina-0.3.8 spec/dsl/to_spec.rb
mina-0.3.7 spec/dsl/to_spec.rb
mina-0.3.6 spec/dsl/to_spec.rb
mina-0.3.4 spec/dsl/to_spec.rb
mina-0.3.3 spec/dsl/to_spec.rb
colorful-mina-0.3.1 spec/dsl/to_spec.rb
mina-0.3.2 spec/dsl/to_spec.rb
mina-0.3.1 spec/dsl/to_spec.rb