Created
October 27, 2011 18:34
-
-
Save ileitch/1320398 to your computer and use it in GitHub Desktop.
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
describe "Symbol#[]" do | |
describe "with a Fixnum index" do | |
it "returns the character code of the element at the index" | |
describe "an index that is out of bounds" do | |
it "returns nil if the index is before the start" | |
it "return nil if the index is past the end" | |
end | |
end | |
describe "with a Float index" do | |
it "converts the index to a Fixnum" | |
end | |
describe "with a nil index" do | |
it "raises a TypeError" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment