Sha256: 53c9b84f69e83e4b030ebdab7f589291268d03c1abadea81f7728bf023799926
Contents?: true
Size: 834 Bytes
Versions: 3
Compression:
Stored size: 834 Bytes
Contents
When /^I add "([^"]*)" from this project as a dependency$/ do |gem_name| append_to_file('Gemfile', %{\ngem "#{gem_name}", :path => "#{PROJECT_ROOT}"}) end Given /^the following installed dummy gems:$/ do |table| table.hashes.each { |hash| build_gem(hash["name"], hash["version"]) } end Given /^a git repository exists for gem "(.*?)" with version "(.*?)"$/ do |gem_name, version| build_gem(gem_name, version) cd gem_name run_simple 'git init .' run_simple 'git config user.email "appraisal@thoughtbot.com"' run_simple 'git config user.name "Appraisal"' run_simple 'git add .' run_simple 'git commit -a -m "initial commit"' dirs.pop end Then /^the file "(.*?)" should contain a correct ruby directive$/ do |filename| in_current_dir do File.read(filename).should match(/^ruby "#{RUBY_VERSION}"$/) end end
Version data entries
3 entries across 3 versions & 1 rubygems