-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug so instance_methods of bridged classes acts correctly
- Loading branch information
1 parent
e3a33d1
commit e5103ad
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'spec_helper' | ||
|
||
describe "Bridged Classes" do | ||
describe ".instance_methdods" do | ||
it "should report methods for class" do | ||
Array.instance_methods.should include(:shift) | ||
end | ||
|
||
it "should not include methods donated from Object/Kernel" do | ||
Array.instance_methods.should_not include(:class) | ||
end | ||
|
||
it "should not include methods donated from BasicObject" do | ||
Array.instance_methods.should_not include(:__send__) | ||
Array.instance_methods.should_not include(:send) | ||
end | ||
end | ||
end |