Sha256: e5819e4171f4e116acce8d696b7ec6a73a905cfa1dbdf0dbcebb1aba681e7625

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'

describe Cmds do
  it 'has a version number' do
    expect(Cmds::VERSION).not_to be nil
  end
  
  it "has dees syntax" do
    expect(Cmds.chomp! "echo 'here'").to eq 'here'
    
    expect(
      Cmds::Cmd.new("head %{opts} %s").
        prepare("/dev/random", opts: {c: 64})
    ).to eq "head -c 64 /dev/random"
    
    # expect(Cmds.chomp! "echo %s", 'here').to eq 'here'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cmds-0.1.5 spec/cmds_spec.rb
cmds-0.1.4 spec/cmds_spec.rb
cmds-0.1.3 spec/cmds_spec.rb
cmds-0.1.2 spec/cmds_spec.rb
cmds-0.1.1 spec/cmds_spec.rb
cmds-0.1.0 spec/cmds_spec.rb