2008-06-18 02:57:57 -04:00
|
|
|
require File.dirname(__FILE__) + '/spec_helper'
|
|
|
|
|
|
|
|
|
|
# Run spec w/ -fs to see the output of this file
|
|
|
|
|
|
|
|
|
|
describe "Examples with no descriptions" do
|
|
|
|
|
|
|
|
|
|
# description is auto-generated as "should equal(5)" based on the last #should
|
2008-11-29 12:00:06 -05:00
|
|
|
specify do
|
2008-06-18 02:57:57 -04:00
|
|
|
3.should equal(3)
|
|
|
|
|
5.should equal(5)
|
|
|
|
|
end
|
|
|
|
|
|
2008-11-29 12:00:06 -05:00
|
|
|
specify { 3.should be < 5 }
|
2008-06-18 02:57:57 -04:00
|
|
|
|
2008-11-29 12:00:06 -05:00
|
|
|
specify { ["a"].should include("a") }
|
2008-06-18 02:57:57 -04:00
|
|
|
|
2008-11-29 12:00:06 -05:00
|
|
|
specify { [1,2,3].should respond_to(:size) }
|
2008-06-18 02:57:57 -04:00
|
|
|
|
|
|
|
|
end
|