lib/sitediff/webserver.rb in sitediff-1.1.1 vs lib/sitediff/webserver.rb in sitediff-1.2.0

- old
+ new

@@ -75,18 +75,21 @@ class FixtureServer < Webserver PORT = DEFAULT_PORT + 1 BASE = 'spec/sites/ruby-doc.org' NAMES = %w[core-1.9.3 core-2.0].freeze + # Initialize web server. def initialize(port = PORT, base = BASE, names = NAMES) dirs = names.map { |n| File.join(base, n) } super(port, dirs, quiet: true) end + # Get the before site uri. def before uris.first end + # Get the after site uri. def after uris.last end end end