Sha256: 878352dbe2885881193fe0e8156d260dba9599159ad56c23f779ab61d0924400

Contents?: true

Size: 925 Bytes

Versions: 4

Compression:

Stored size: 925 Bytes

Contents

Given /^the Gem "([^\"]*)" has been required$/ do |gem|
  Gem.loaded_specs.key?(gem).should be_true
end

Given /^that "([^\"]*)" has been required$/ do |lib|
  require(lib).should be_false
end

Then /^these steps are defined for "([^\"]*)":$/ do |file, table|
  rsc = ::Cucumber::Runtime::SupportCode.new 'ui', :autoload_code_paths => 'lib/cuken/cucumber'
  rsc.load_files! ["lib/#{file}", "#{ENV['GEM_HOME']}/gems/aruba-0.3.6/lib/aruba/cucumber.rb"]
  sd_array = rsc.step_definitions
  #sd_array.each{|sd| puts sd.regexp_source}
  table.hashes.each do |hsh|
    sd_array.each{|sd| res = sd.regexp_source == %Q{/^#{hsh['step']}$/}; break('found') if res}.should == 'found'
  end
end

When /^I do aruba (.*)$/ do |aruba_step|
  begin
    When(aruba_step)
  rescue => e
    @aruba_exception = e
  end
end

Then /^I see aruba (.*)$/ do |aruba_step|
  begin
    Then(aruba_step)
  rescue => e
    @aruba_exception = e
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cuken-0.1.11 features/step_definitions/cuken_steps.rb
cuken-0.1.10 features/step_definitions/cuken_steps.rb
cuken-0.1.9 features/step_definitions/cuken_steps.rb
cuken-0.1.8 features/step_definitions/cuken_steps.rb