Sha256: d1260af07519189cd21856e35a6be934669bd4d7a558ab29e6090e274c68d70c
Contents?: true
Size: 575 Bytes
Versions: 7
Compression:
Stored size: 575 Bytes
Contents
require 'helper' describe Scide::Commands::Edit do it "should use the preferred editor" do com = Scide::Commands::Edit.new nil com.text_with_options.should == '$EDITOR\012' end it "should use given contents as arguments to the editor" do com = Scide::Commands::Edit.new 'fubar' com.text_with_options.should == '$EDITOR fubar\012' end it "should use the :edit option as arguments to the editor" do com = Scide::Commands::Edit.new 'fubar', :edit => '-c MyCommand' com.text_with_options.should == '$EDITOR -c MyCommand fubar\012' end end
Version data entries
7 entries across 7 versions & 1 rubygems