Sha256: cc67714cc19a34c176f28ced8b466aaaf47723b8358917546140585d1cf2ce54
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
Given /^I have created a project called "([^\"]*)"$/ do |name| create_directory(name) create_file("#{name}/Gemfile", <<-END.gsub(/^\s*/, '')) source :rubygems gem 'shoe', :group => :development END run('bundle exec shoe', name) end Given /^I have created a directory called "([^\"]*)"$/ do |name| create_directory(name) end Given /^I have created a file called "([^\"]*)" containing "([^\"]*)"$/ do |path, contents| create_file(path, contents) end Given /^I have created a file called "([^\"]*)" containing:$/ do |path, contents| create_file(path, contents) end Given /^I have appended "([^\"]*)" to "([^\"]*)"$/ do |contents, path| append_file(path, contents) end When /^I replace "([^\"]*)" with "([^\"]*)" in the file "([^\"]*)"$/ do |search, replace, path| edit_file(path, search, replace) end When /^I (?:have )?run (.*) inside "([^\"]*)"$/ do |command, path| run(command, path) end Then /^I should(.*) see "([^\"]*)" on (standard.*)$/ do |negate, message, standard_out_or_error| standard_out_or_error.tr!(' ', '_') am_i_expecting_to_see_something = negate.strip.empty? contents = send(standard_out_or_error) assert_equal am_i_expecting_to_see_something, contents.include?(message), contents end Then /^I should see a file "([^\"]*)"$/ do |path| assert file(path).exist? end Then /^the contents of "([^\"]*)" should still be "([^\"]*)"$/ do |path, expected| assert_equal expected, file(path).read end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoe-0.4.0 | features/step_definitions/shoe_steps.rb |