Sha256: 0cb3c231e0c9414a7fdcec5a545e98602f4ec72de9695971b99be01ee487224f
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoe-0.6.1 | features/step_definitions/shoe_steps.rb |
shoe-0.6.0 | features/step_definitions/shoe_steps.rb |