Sha256: 659c8a0326afab38d654179a0369c947fe102bc4d7721d9765fcee040f2d60ac
Contents?: true
Size: 776 Bytes
Versions: 2
Compression:
Stored size: 776 Bytes
Contents
if defined? RSpec require 'acceptance_test/acceptance_test_builder' acceptance_test_lambda = lambda do attr_reader :acceptance_test before :all do config_name = File.expand_path("spec/features/acceptance_config.yml") @acceptance_test = AcceptanceTestBuilder.instance.create ".", config_name, "tmp" end before do metadata = RSpec.current_example.metadata acceptance_test.before metadata end after do metadata = RSpec.current_example.metadata acceptance_test.after page, RSpec.current_example.exception, metadata self.reset_session! end end RSpec.shared_context "AcceptanceTest" do self.define_singleton_method(:include_context, acceptance_test_lambda) include_context end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acceptance_test-1.3.1 | lib/acceptance_test/acceptance_shared_context.rb |
acceptance_test-1.3.0 | lib/acceptance_test/acceptance_shared_context.rb |