Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix last broken test

  • Loading branch information...
commit 5e3110b568d0f1bf9770e835dc0776649ba4ba91 1 parent 844a20e
@stuhood stuhood authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/transformation_spec.rb
View
5 test/transformation_spec.rb
@@ -227,8 +227,11 @@ def empty_ops
it "raises an argument error if the transformation requires a copy without a valid source" do
to = mk_template 'ReplicatingShard -> (SqlShard(host1), SqlShard(host2))'
+ fulfill = lambda {|type| if type == "BlackHoleShard"; "#{type}(hostz)"; else type end}
+
Gizzard::Shard::INVALID_COPY_TYPES.each do |invalid_type|
- from = mk_template "ReplicatingShard -> #{invalid_type} -> SqlShard(host1)"
+ fulfilled = fulfill.call(invalid_type)
+ from = mk_template "ReplicatingShard -> #{fulfilled} -> SqlShard(host1)"
lambda { Gizzard::Transformation.new(from, to) }.should raise_error(ArgumentError)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.