Sha256: 179a2bbf1c2a05cfbb95113094744ae5df11d91a7e0e82a32bb6d90cabb732d1

Contents?: true

Size: 666 Bytes

Versions: 6

Compression:

Stored size: 666 Bytes

Contents

require_relative '../lib/dev_tasks.rb'
require 'dev_commands'

describe DevTasks do

  it "should be able to define rake tasks for the gem-example" do
		dir='spec/gem-example'
  		expect(File.exists?("#{dir}/rakefile.rb")).to eq(true)

	  	Dir.chdir(dir) do
	  	  expect(Command.exit_code('rake default')).to eq(0)
	  	  expect(Command.exit_code('rake build')).to eq(0)
	  	  expect(File.exists?('gem-example-0.0.0.gem')).to eq(true)
	  	  expect(Command.exit_code('rake clobber')).to eq(0)
	  	  expect(File.exists?('gem-example-0.0.0.gem')).to eq(false)
	  	  expect(Command.output('rake -T').include?('rake build')).to eq(true)
	    end
	end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dev_tasks-1.0.44 spec/dev_tasks_spec.rb
dev_tasks-1.0.43 spec/dev_tasks_spec.rb
dev_tasks-1.0.42 spec/dev_tasks_spec.rb
dev_tasks-1.0.41 spec/dev_tasks_spec.rb
dev_tasks-1.0.40 spec/dev_tasks_spec.rb
dev_tasks-1.0.39 spec/dev_tasks_spec.rb