Sha256: a31cdc8670ec6b581cc71219d2b1a729085c4f98372c5a63c71a3f344d2be83f
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
module Cypress class ScenarioBank def initialize @scenarios = {} end def boot if Cypress.configuration.test_framework == :rspec require 'rspec/rails' extend RSpec::Mocks::ExampleMethods end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cypress-on-rails-0.1.2 | lib/cypress/scenario_bank.rb |
cypress-on-rails-0.1.1 | lib/cypress/scenario_bank.rb |
cypress-on-rails-0.1 | lib/cypress/scenario_bank.rb |