lib/pinocchio/blue_fairy.rb
# To avoid restart WEBrick every test method, but
# make sure the Wooden Boy do not remember old lies
To avoid restart WEBrick every test method, but
make sure the Wooden Boy do not remember old lies
To avoid restart WEBrick every test method but make sure the Wooden Boy do not remember old lies
def call(env)
    if env["PATH_INFO"] == "/__identify__"
      [200, {}, [self.object_id.to_s]]
    else
      @wooden_boy.call(env)
    end
  end
def call ( env ) if env [ "PATH_INFO" ] == "/__identify__" [ 200 , { } , [ self . object_id . to_s ] ] else @wooden_boy . call ( env ) end end
To avoid restart WEBrick every test method, but
make sure the Wooden Boy do not remember old lies
To avoid restart WEBrick every test method but make sure the Wooden Boy do not remember old lies
env