Sha256: 3b3ab6d75cd24b5fc1c2dae080de26409afa1b9e42a3f6e01deb44e04473c48a
Contents?: true
Size: 555 Bytes
Versions: 8
Compression:
Stored size: 555 Bytes
Contents
class DisableExternalTests attr_accessor :tests_to_disable def disable(top_level_example_group) tests_to_disable.each do |to_disable| example_group = top_level_example_group example_description = to_disable.pop to_disable.each do |description| example_group = example_group.children.find{ |g| g.description == description } end example = example_group.examples.find{ |e| e.description == example_description } example.metadata[:external_test_disabled] = true unless example.nil? end end end
Version data entries
8 entries across 8 versions & 1 rubygems