Skip to content

Instantly share code, notes, and snippets.

@ileitch
Created October 27, 2011 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ileitch/1320398 to your computer and use it in GitHub Desktop.
Save ileitch/1320398 to your computer and use it in GitHub Desktop.
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