Sha256: 3249cedd094964da0b33655b657227b72140e784c7f86f60b51b68f18304ad0b
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
module Ajax module RSpec module Extension # Enable and unmock def integrate_ajax Ajax.enabled = true Ajax.mocked = false end # Disable def disable_ajax Ajax.enabled = false end alias_method :unmock_ajax, :disable_ajax # Enable and mock def mock_ajax Ajax.enabled = true Ajax.mocked = true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ajax-1.1.7 | lib/ajax/rspec/extension.rb |
ajax-1.1.6 | lib/ajax/rspec/extension.rb |