Sha256: 21369b46fa98ca274ad36adcefb25672615d2e72d63c0ab68ac5aa0266769314

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
message-driver-0.5.3 features/step_definitions/middleware_steps.rb
message-driver-0.5.2 features/step_definitions/middleware_steps.rb
message-driver-0.5.1 features/step_definitions/middleware_steps.rb
message-driver-0.5.0 features/step_definitions/middleware_steps.rb