spec/command-task.rb in mattock-0.3.4 vs spec/command-task.rb in mattock-0.4.0
- old
+ new
@@ -7,11 +7,11 @@
include Mattock::RakeExampleGroup
include Mattock::CommandLineExampleGroup
let! :remote_task do
namespace :test do
- Mattock::RemoteCommandTask.new do |t|
+ Mattock::Rake::RemoteCommandTask.define_task do |t|
t.remote_server.address = "nowhere.com"
t.command = Mattock::PrereqChain.new do |prereq|
prereq.add Mattock::CommandLine.new("cd", "a_dir")
prereq.add Mattock::PipelineChain.new do |pipe|
pipe.add Mattock::CommandLine.new("ls")
@@ -40,10 +40,10 @@
describe Mattock::BundleCommandTask do
include Mattock::RakeExampleGroup
include Mattock::CommandLineExampleGroup
let! :bundle_task do
- Mattock::BundleCommandTask.new(:bundle_test) do |t|
+ Mattock::BundleCommandTask.define_task(:bundle_test) do |t|
t.command = cmd("bundle", "install", "--standalone")
end
end
it "should run command" do