require 'test_helper'

class AslonSettingsTest < ActiveSupport::TestCase
  test "truth" do
    assert_kind_of Module, AslonSettings
  end

  test "Assignation d un parametre" do
    Admin::Param.smpt.serveur="smtp.gmail.com"
    assert_equal    Admin::Param.smpt.serveur, "smtp.gmail.com"
  end

  test "Assignation d un parametre et modification" do
    Admin::Param.smpt.serveur="smtp.gmail.com"
    assert_equal    Admin::Param.smpt.serveur, "smtp.gmail.com"

    Admin::Param.smpt.serveur="smtp.google.com"
    assert_equal  Admin::Param.smpt.serveur, "smtp.google.com"
  end

end
