Sha256: 379fd00efee1d9e35c30742fdf69707ff7d7fe973bc61555203c2822138be746
Contents?: true
Size: 351 Bytes
Versions: 4
Compression:
Stored size: 351 Bytes
Contents
module Cypress class ScenarioBank def initialize @scenarios = {} end def load Dir['./spec/cypress/scenarios/**/*.rb'].each do |f| instance_eval(File.read(f), f) end end def scenario(name, &block) @scenarios[name] = block end def [](name) @scenarios[name.to_sym] end end end
Version data entries
4 entries across 4 versions & 1 rubygems