Sha256: 8ce68ee423d1138d185f14bc17984c74e0bbfd644d874192468154ea6e5edd11

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

Given('I have a middleware class') do |src|
  write_file('feature_middleware.rb', src)
  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)
  destination.middleware.append klass
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
message-driver-1.0.1 features/step_definitions/middleware_steps.rb
message-driver-1.0.0 features/step_definitions/middleware_steps.rb
message-driver-0.7.2 features/step_definitions/middleware_steps.rb
message-driver-0.7.1 features/step_definitions/middleware_steps.rb
message-driver-0.7.0 features/step_definitions/middleware_steps.rb
message-driver-0.6.1 features/step_definitions/middleware_steps.rb
message-driver-0.6.0 features/step_definitions/middleware_steps.rb