Sha256: 8a6b5d333f9bc8b17767b67a53d3f299f54f0b757ae25661e5ea0477f6131171

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 Bytes

Contents

require 'helper'

describe Scide::Commands::Show do

  it "should produce a GNU Screen stuff command" do
    com = Scide::Commands::Show.new 'fubar'
    com.to_screen.should == 'stuff "fubar"'
  end

  it "should use #text_with_options as argument to stuff" do
    com = Scide::Commands::Show.new 'fubar'
    text_with_options = com.text_with_options
    com.to_screen.should == %|stuff "#{text_with_options}"|
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scide-0.0.12 spec/commands/show_spec.rb
scide-0.0.11 spec/commands/show_spec.rb
scide-0.0.10 spec/commands/show_spec.rb
scide-0.0.9 spec/commands/show_spec.rb
scide-0.0.8 spec/commands/show_spec.rb
scide-0.0.7 spec/commands/show_spec.rb
scide-0.0.6 spec/commands/show_spec.rb