Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Split failed specs in ruby_bug.

  • Loading branch information...
commit eb4337495e547c722cb3b42b15c6d408f66d1fe8 1 parent c652ddb
@nurse nurse authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 optional/capi/class_spec.rb
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.