Skip to content

Instantly share code, notes, and snippets.

@jcbozonier
Created November 7, 2009 21:29
Show Gist options
  • Select an option

  • Save jcbozonier/228903 to your computer and use it in GitHub Desktop.

Select an option

Save jcbozonier/228903 to your computer and use it in GitHub Desktop.
Normal:
describe "When reading past last character in the string" do
before(:each) do
@string_reader = StringReader.new("ab")
@string_reader.read
@string_reader.read
end
it "should asplode!" do
lambda{@string_reader.read}.should raise_error
end
end
Desired:
describe "When reading past last character in the string" do
before(:each) do
@string_reader = StringReader.new("ab")
@string_reader.read
@string_reader.read
end
it "should asplode!" do
running{@string_reader.read}.should raise_error
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment