<commit_before>package im.actor.server.api.rpc.service

import im.actor.api.rpc._
import im.actor.api.rpc.configs._
import im.actor.api.rpc.misc.ResponseSeq
import im.actor.server._
import im.actor.server.api.rpc.service.configs.ConfigsServiceImpl

class ConfigsServiceSpec
  extends BaseAppSuite
  with ImplicitSessionRegion
  with ImplicitAuthService {
  behavior of "Configs Service"

  it should "save parameter even if it already exists" in e1()

  it should "get parameters" in e2()

  val service = new ConfigsServiceImpl

  val (user, authId, authSid, _) = createUser()
  val sessionId = createSessionId()

  implicit val clientData = ClientData(authId, sessionId, Some(AuthData(user.id, authSid)))

  def e1() = {
    whenReady(service.handleEditParameter("par1", "val1")) { resp ⇒
      resp should matchPattern {
        case Ok(ResponseSeq(_, _)) ⇒
      }
    }

    whenReady(service.handleEditParameter("par1", "val2")) { resp ⇒
      resp should matchPattern {
        case Ok(ResponseSeq(_, _)) ⇒
      }
    }
  }<commit_msg>fix(server:tests): compilation error<commit_after>package im.actor.server.api.rpc.service

import im.actor.api.rpc._
import im.actor.api.rpc.configs._
import im.actor.api.rpc.misc.ResponseSeq
import im.actor.server._
import im.actor.server.api.rpc.service.configs.ConfigsServiceImpl

class ConfigsServiceSpec
  extends BaseAppSuite
  with ImplicitSessionRegion
  with ImplicitAuthService {
  behavior of "Configs Service"

  it should "save parameter even if it already exists" in e1()

  it should "get parameters" in e2()

  val service = new ConfigsServiceImpl

  val (user, authId, authSid, _) = createUser()
  val sessionId = createSessionId()

  implicit val clientData = ClientData(authId, sessionId, Some(AuthData(user.id, authSid)))

  def e1() = {
    whenReady(service.handleEditParameter("par1", Some("val1"))) { resp ⇒
      resp should matchPattern {
        case Ok(ResponseSeq(_, _)) ⇒
      }
    }

    whenReady(service.handleEditParameter("par1", Some("val2"))) { resp ⇒
      resp should matchPattern {
        case Ok(ResponseSeq(_, _)) ⇒
      }
    }
  }
{'fraction_non_alphanumeric': 0.11032531824611033, 'fraction_numerical': 0.006600660066006601, 'mean_word_length': 3.7685393258426965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2775204', 'n_tokens_mistral': 684, 'n_tokens_neox': 678, 'n_words': 166}