Sha256: 4b5c8fbf3b36b210b1c7fd45429e2b249d6d566cc107f3760929c85cf2359f25

Contents?: true

Size: 354 Bytes

Versions: 55

Compression:

Stored size: 354 Bytes

Contents

class CucumberExt
  def self.metadata_from_scenario scenario
    tags = scenario.source_tag_names.collect { |a| a.gsub("@", '') }

    metadata = {}

    if tags.size > 0
      tag = tags.first.to_sym

      if AcceptanceTest.instance.driver_manager.supported_drivers.include? tag
        metadata[:driver] = tag
      end
    end

    metadata
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
acceptance_test-1.11.7 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.11.6 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.11.5 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.11.4 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.11.3 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.11.2 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.11.1 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.11.0 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.12 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.11 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.10 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.9 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.8 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.7 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.6 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.5 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.4 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.3 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.2 lib/acceptance_test/cucumber_ext.rb
acceptance_test-1.10.1 lib/acceptance_test/cucumber_ext.rb