Sha256: 332593d9b9bda104316a3d86856c5ebaef106ef29993fc4c80849f7c55a34661

Contents?: true

Size: 311 Bytes

Versions: 15

Compression:

Stored size: 311 Bytes

Contents

require File.join(File.dirname(File.expand_path(__FILE__)), "/../spec_helper.rb")

describe String, "with shell escape" do
  it "should add quotes to string" do
    "foo".shell_escape.should == '"foo"'
  end

  it "should escape quotes within string" do
    '"foo"'.shell_escape.should == '"\"foo\""'
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
automate-it-0.9.2 spec/unit/shell_escape_spec.rb
automate-it-0.9.1 spec/unit/shell_escape_spec.rb
automate-it-0.9.0 spec/unit/shell_escape_spec.rb
automateit-0.71103 spec/unit/shell_escape_spec.rb
automateit-0.71104 spec/unit/shell_escape_spec.rb
automateit-0.71112 spec/unit/shell_escape_spec.rb
automateit-0.71221 spec/unit/shell_escape_spec.rb
automateit-0.71219 spec/unit/shell_escape_spec.rb
automateit-0.71111 spec/unit/shell_escape_spec.rb
automateit-0.71220 spec/unit/shell_escape_spec.rb
automateit-0.71226.1 spec/unit/shell_escape_spec.rb
automateit-0.71226 spec/unit/shell_escape_spec.rb
automateit-0.80624 spec/unit/shell_escape_spec.rb
automateit-0.71230 spec/unit/shell_escape_spec.rb
automateit-0.80116 spec/unit/shell_escape_spec.rb