Sha256: d1ffa679d2c2fdc12286ee0bc358b8d1e50d7086d9082904885afe03aad4870e
Contents?: true
Size: 1.86 KB
Versions: 2
Compression:
Stored size: 1.86 KB
Contents
require "spec_helper" describe FluentMigrator do subject(:task) do task = FluentMigrator.new() task.extend(SystemPatch) task.command = "fluentm" task.namespace = "namespace" task.provider = "provider" task.target = "target" task.connection = "connection" task.out task.out_file = "output.txt" task.steps = 1 task.task = "migrate:up" task.version = "001" task.script_directory = "scripts" task.profile = "profile" task.timeout = 90 task.tag = "tag" task.verbose task.preview task end let(:cmd) { task.system_command } before :each do task.execute end it "should run target" do cmd.should include("/target=\"target\"") end it "should use provider" do cmd.should include("/provider=provider") end it "should use connection" do cmd.should include("/connection=\"connection\"") end it "should include the namespace" do cmd.should include("/ns=namespace") end it "should output to the specified file" do cmd.should include("/out") cmd.should include("/outfile=\"output.txt\"") end it "should step once" do cmd.should include("/steps=1") end it "should run the task" do cmd.should include("/task=migrate:up") end it "should run to version one" do cmd.should include("/version=001") end it "should use the working directory" do cmd.should include("/wd=\"scripts\"") end it "should use profile" do cmd.should include("/profile=profile") end it "should timeout" do cmd.should include("/timeout=90") end it "should include tag" do cmd.should include("/tag=tag") end it "should preview" do cmd.should include("/preview") end it "should be verbose" do cmd.should include("/verbose=true") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | spec/fluentmigrator_spec.rb |
albacore-1.0.0.rc.3 | spec/fluentmigrator_spec.rb |