Permalink
Browse files

Split failed specs in ruby_bug.

  • Loading branch information...
1 parent c652ddb commit eb4337495e547c722cb3b42b15c6d408f66d1fe8 @nurse nurse committed Nov 30, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 optional/capi/class_spec.rb
@@ -9,16 +9,22 @@
end
it "raises an ArgumentError if a constant in the path does not exist" do
- lambda { @s.send(@method, "CApiClassSpecs::X::B") }.should raise_error(ArgumentError)
+ lambda { @s.send(@method, "CApiClassSpecs::NotDefined::B") }.should raise_error(ArgumentError)
end
it "raises an ArgumentError if the final constant does not exist" do
- lambda { @s.send(@method, "CApiClassSpecs::X") }.should raise_error(ArgumentError)
+ lambda { @s.send(@method, "CApiClassSpecs::NotDefined") }.should raise_error(ArgumentError)
end
it "raises a TypeError if the constant is not a class or module" do
lambda { @s.send(@method, "CApiClassSpecs::A::C") }.should raise_error(TypeError)
end
+
+ ruby_bug '#5691', '1.9.3' do
+ it "raises an ArgumentError even if a constant in the path exists on toplevel" do
+ lambda { @s.send(@method, "CApiClassSpecs::Object") }.should raise_error(ArgumentError)
+ end
+ end
end
describe "C-API Class function" do

0 comments on commit eb43374

Please sign in to comment.