Sha256: 6121bb9d31a91d24dfa366c2a69c7c1c317190c940024d3279c1b3f880688d2a
Contents?: true
Size: 1.24 KB
Versions: 19
Compression:
Stored size: 1.24 KB
Contents
if RUBY_PLATFORM =~ /darwin/ require_relative 'test_helper' describe "Tmate Command" do include TestDsl it "must open a current file with current frame in Textmate" do Debugger::TextMateCommand.any_instance.expects(:`).with("open 'txmt://open?url=file://#{fullpath('tmate')}&line=7'") enter 'break 7', 'cont', 'tmate' debug_file 'tmate' end it "must open a current file with specified frame in Textmate" do Debugger::TextMateCommand.any_instance.expects(:`).with("open 'txmt://open?url=file://#{fullpath('tmate')}&line=4'") enter 'break 7', 'cont', 'tmate 2' debug_file 'tmate' end describe "errors" do it "must show an error message if frame == 0" do enter 'tmate 0' debug_file 'tmate' check_output_includes "Wrong frame number" end it "must show an error message if frame > max frame" do enter 'tmate 10' debug_file 'tmate' check_output_includes "Wrong frame number" end end describe "Post Mortem" do it "must work in post-mortem mode" do Debugger::TextMateCommand.any_instance.expects(:`).with( "open 'txmt://open?url=file://#{fullpath('post_mortem')}&line=8'" ) enter 'cont', 'tmate' debug_file 'post_mortem' end end end end
Version data entries
19 entries across 18 versions & 4 rubygems