Sha256: 8cb90655659aa8440d415c85dcff61b4afeb161980293d80c279715e79a65c0d

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

Then(/^I bootstrap$/) do
  class Listener
    attr_accessor :messages
    
    def initialize
      @messages = []
    end
    
    def echo msg
      @messages.push msg
    end
  end
  @listener = Listener.new
  
  $conjur.bootstrap @listener
end

Then(/^expressions "([^"]*)" and "([^"]*)" are equal$/) do |code, test|
  expect(eval(code)).to eq(eval(test))
end

Then(/^expression "([^"]*)" includes "([^"]*)"$/) do |code, test|
  expect(eval(code)).to include(eval(test))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conjur-api-4.22.1 features/step_definitions/api_steps.rb
conjur-api-4.22.0 features/step_definitions/api_steps.rb
conjur-api-4.21.0 features/step_definitions/api_steps.rb