Sha256: b7eb79a885560a0f9a8ecd842b52ee54521f6ab2a8648c4d62452fd76652f76e
Contents?: true
Size: 1.28 KB
Versions: 5
Compression:
Stored size: 1.28 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 Byebug::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 Byebug::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 skip("No post morten mode for now") #Byebug::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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
byebug-1.0.3 | test/tmate_test.rb |
byebug-1.0.2 | test/tmate_test.rb |
byebug-1.0.1 | test/tmate_test.rb |
byebug-1.0.0 | test/tmate_test.rb |
byebug-0.0.1 | test/tmate_test.rb |