test/unit/gem_tests.rb in ggem-1.8.0 vs test/unit/gem_tests.rb in ggem-1.8.1
- old
+ new
@@ -27,10 +27,10 @@
assert_equal File.join(TMP_PATH, @gem_name), subject.path
end
should "complain if no name is provided" do
assert_raises(NoNameError) do
- @gem_class.new(TMP_PATH, [nil, ''].choice)
+ @gem_class.new(TMP_PATH, [nil, ''].sample)
end
end
# most of the gem's behavior is covered in the system tests