Sha256: 913bea8febd920ae8c4b36600e4d9f1f6c4050f8473cbac2ddfc1a83a9bb160f
Contents?: true
Size: 1.42 KB
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoe-0.5.1 | features/step_definitions/shoe_steps.rb |
shoe-0.5.0 | features/step_definitions/shoe_steps.rb |