Sha256: f3ab5b79e5160920fe57ec74c143011a505930752ddd90bdc209427ef1b1f869

Contents?: true

Size: 365 Bytes

Versions: 11

Compression:

Stored size: 365 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 }

    rake.commands.should == ['git clone']
    rake.commands(:restart).should == ['touch tmp/restart.txt']
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
mina-traackr-0.3.0 spec/dsl/to_spec.rb
mina-0.3.0 spec/dsl/to_spec.rb
mina-0.2.1 spec/dsl/to_spec.rb
mina-0.2.0 spec/dsl/to_spec.rb
mina-0.2.0.pre2 spec/dsl/to_spec.rb
mina-0.1.3.pre1 spec/dsl/to_spec.rb
mina-0.1.2 spec/dsl/to_spec.rb
mina-0.1.2.pre2 spec/dsl/to_spec.rb
mina-0.1.2.pre1 spec/dsl/to_spec.rb
mina-0.1.1 spec/dsl/to_spec.rb
mina-0.1.0 spec/dsl/to_spec.rb