Sha256: c44164da3f3d6ec04bc5c80b4949a85d883d5d7990f003c30535e39afc9b8a2c

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

require_relative '../lib/commands.rb'

describe Commands do
  it "should be able to automatically generate commands for a particular directory" do
  	dir='spec/gem-example'
  	expect(File.exists?("#{dir}/rakefile.rb")).to eq(true)

  	Dir.chdir(dir) do
  	  commands=Commands.new
  	  expect(commands.has_key?(:pull)).to eq(true)
  	  commands[:pull].update
  	  expect(commands[:pull].length).to eq(0)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dev_commands-0.0.25 spec/commands_spec.rb
dev_commands-0.0.24 spec/commands_spec.rb
dev_commands-0.0.23 spec/commands_spec.rb
dev_commands-0.0.22 spec/commands_spec.rb
dev_commands-0.0.21 spec/commands_spec.rb
dev_commands-0.0.20 spec/commands_spec.rb
dev_commands-0.0.19 spec/commands_spec.rb