spec/job_spec.rb in vtools-0.0.3 vs spec/job_spec.rb in vtools-0.1.0
- old
+ new
@@ -66,11 +66,11 @@
# specs
context "#validate" do
it "accepts options" do
-
+
["convert", "thumbs", "info"].each do |action|
conf = config.dup
conf.action = action
conf.setup = "setup.test" unless action == "info"
@@ -82,10 +82,10 @@
def validate_exception conf, message_rx
expect { @job.validate(conf) }.to raise_error VTools::ConfigError, message_rx
end
-
+
["convert", "thumbs", "info"].each do |action|
# empty config
conf = OpenStruct.new({})
validate_exception conf, /Invalid action \(config: /