Sha256: d969f152b86ad39ca54eb597ef56ab642f421c73013288aa7560d14bed459ac4
Contents?: true
Size: 514 Bytes
Versions: 4
Compression:
Stored size: 514 Bytes
Contents
Given /^I enable hoe plugin "([^\"]*)"$/ do |plugin| in_project_folder do rakefile = File.read('Rakefile') rakefile.gsub!(/^#\s*(Hoe.plugin :#{plugin})/, '\1') File.open("Rakefile", "w") { |file| file << rakefile } end end Then /^gemspec builds the RubyGem successfully$/ do @stdout = File.expand_path(File.join(@tmp_root, "rake.out")) in_project_folder do system "gem build #{@project_name}.gemspec > #{@stdout}" gemspec = Dir['**/*.gem'].first gemspec.should_not be_nil end end
Version data entries
4 entries across 4 versions & 1 rubygems