Sha256: adcca9bf7b85d2fc5d04d7e9eb748e1e74c5a8807876f9a2caee0cc85b58b01c

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

describe_spec_file(
  spec_path: __FILE__,
  module: Cmds,
  method: :quote_dance,
) do
  
  it_behaves_like "function",
    mapping: {
      ["you're", :single] => %{'you'"'"'re'},
      ['such a "goober" dude', :double] => %{"such a "'"'"goober"'"'" dude"},
      [%{hey "ho" let's go}, :double] => %{"hey "'"'"ho"'"'" let's go"}
    },
    
    raising: {
      ["blah", :not_there] => KeyError,
    }
  
end # spec file

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cmds-0.2.11 spec/cmds/util/shell_escape/quote_dance_spec.rb
cmds-0.2.10 spec/cmds/util/shell_escape/quote_dance_spec.rb
cmds-0.2.9 spec/cmds/util/shell_escape/quote_dance_spec.rb
cmds-0.2.8 spec/cmds/util/shell_escape/quote_dance_spec.rb
cmds-0.2.7 spec/cmds/util/shell_escape/quote_dance_spec.rb
cmds-0.2.6 spec/cmds/util/shell_escape/quote_dance_spec.rb
cmds-0.2.5 spec/cmds/util/shell_escape/quote_dance_spec.rb