Sha256: e4dde392fecd00d025ebed151eb48ca8ebc060fbb228a12192901e9133c0e7b2
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
# frozen_string_literal: true begin # Try to load it so we can assign @_result below if needed. require 'test/unit/testresult' rescue LoadError # Test Unit not found end module Cucumber module Rails class World < ActionDispatch::IntegrationTest include Rack::Test::Methods include ActiveSupport::Testing::SetupAndTeardown if ActiveSupport::Testing.const_defined?('SetupAndTeardown') def initialize @_result = Test::Unit::TestResult.new if defined?(Test::Unit::TestResult) end unless defined?(ActiveRecord::Base) # Workaround for projects that don't use ActiveRecord def self.fixture_table_names [] end end end end end World do Cucumber::Rails::World.new end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-rails-1.8.0 | lib/cucumber/rails/world.rb |