templates/test_suite.rb in prologue-0.1.2 vs templates/test_suite.rb in prologue-0.2.0

- old
+ new

@@ -6,6 +6,25 @@ g.test_framework :rspec end RUBY end -run 'mkdir spec/factories' +run 'mkdir spec/factories' + +create_file 'features/step_definitions/helper_steps.rb' do +<<-'FILE' +When /^I confirm a js popup on the next step$/ do + page.evaluate_script("window.alert = function(msg) { return true; }") + page.evaluate_script("window.confirm = function(msg) { return true; }") +end +FILE +end + +create_file 'features/step_definitions/factory_steps.rb' do +<<-'FILE' +Given /^the following (.+) records?$/ do |factory, table| + table.hashes.each do |hash| + Factory(factory, hash) + end +end +FILE +end \ No newline at end of file