Skip to content

Instantly share code, notes, and snippets.

@tobymurray
Created October 30, 2015 18:16
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 tobymurray/e2db526303fe3a376a23 to your computer and use it in GitHub Desktop.
Save tobymurray/e2db526303fe3a376a23 to your computer and use it in GitHub Desktop.
it "should raise exception on GMT command failure" do
FileUtils.makedirs(GmtMapFile::temp_map_dir) unless File.directory?(GmtMapFile::temp_map_dir)
ps_file_name = File.join(GmtMapFile::temp_map_dir, "not enough options.ps")
expect { GmtMap.run "pscoast", ">", ps_file_name }.to raise_error RuntimeError
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment