Sha256: 5e25082cd864e301ec7a0f329b2972afc175e73bc6eabe65515b82b78b95c9ca
Contents?: true
Size: 547 Bytes
Versions: 4
Compression:
Stored size: 547 Bytes
Contents
# Only require integration module when extensions are included. # RSpec integration. Add a before filter to disable Ajax before all tests. module Ajax::RSpec::Integration if defined?(RSpec) RSpec.configure do |c| c.before do ::Ajax.enabled = false end end elsif defined?(Spec) Spec::Runner.configure do |c| c.before :all do ::Ajax.enabled = false end end end end # ActiveSupport::TestCase integration module ActiveSupport class TestCase include Ajax::RSpec::Extension end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ajax-1.1.3 | lib/ajax/rspec/integration.rb |
ajax-1.1.2 | lib/ajax/rspec/integration.rb |
ajax-1.1.1 | lib/ajax/rspec/integration.rb |
ajax-1.1.0 | lib/ajax/rspec/integration.rb |