Skip to content

Instantly share code, notes, and snippets.

@ameuret
Created February 20, 2012 16:38
Show Gist options
  • Save ameuret/1870029 to your computer and use it in GitHub Desktop.
Save ameuret/1870029 to your computer and use it in GitHub Desktop.
Ruby rescue statement modifier caveat
describe M2Config do
before(:each) do
File.delete DEFAULT_DB_NAME rescue
@cfg = M2Config.new
end
end
describe M2Config do
before(:each) do
File.delete DEFAULT_DB_NAME rescue nil
@cfg = M2Config.new
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment