Module: MediaWiki::FakeWiki::RSpecAdapter

Defined in:
lib/media_wiki/fake_wiki.rb

Constant Summary collapse

ADDRESS =
'dummy-wiki.example'

Class Method Summary collapse

Class Method Details

.enhance(config, *args) ⇒ Object



623
624
625
626
627
628
629
630
# File 'lib/media_wiki/fake_wiki.rb', line 623

def self.enhance(config, *args)
  ShamRack.mount($fake_media_wiki = App.new!, ADDRESS)

  config.before(*args) {
    @gateway = Gateway.new("http://#{ADDRESS}/w/api.php")
    $fake_media_wiki.reset
  }
end