Skip to content

Instantly share code, notes, and snippets.

@thbar
Created December 1, 2008 09:06
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 thbar/30685 to your computer and use it in GitHub Desktop.
Save thbar/30685 to your computer and use it in GitHub Desktop.
# you can grab mspec using:
# git clone git://github.com/jflam/mspec.git
$LOAD_PATH << File.dirname(__FILE__) + "/gems/mspec/lib"
require 'mspec'
describe "Array#sort" do
before :each do
@obj = [1,9,0,10]
end
it "sorts properly" do
@obj.sort.should == [0,1,9,10]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment