features/step_definitions/middleware_steps.rb in message-driver-0.5.3 vs features/step_definitions/middleware_steps.rb in message-driver-0.6.0
- old
+ new
@@ -1,7 +1,7 @@
Given('I have a middleware class') do |src|
write_file('feature_middleware.rb', src)
- in_current_dir { load './feature_middleware.rb' }
+ cd('.') { load './feature_middleware.rb' }
end
When(/^I append middleware "(.*?)" to (#{STRING_OR_SYM})$/) do |class_name, dest_name|
klass = Object.const_get(class_name)
destination = test_runner.fetch_destination(dest_name)