<commit_before>require "spec_helper"

describe "Postgres recipe" do
  before do
    setup_vagrant
  end

  it "installs Postgres" do
    assert_installation("psql --version").should be_false

    Vito::DslFile.new.run do
      server do
        connection :ssh, command: 'ssh -i ~/.vagrant.d/insecure_private_key vagrant@localhost -p2222', silent: true
        install :postgres, username: 'sebasoga', password: '<PASSWORD>'
      end
    end

    assert_installation("psql --version").should be_true
  end
end<commit_msg>Adds Ubuntu10 and 12 tests for Postgres<commit_after>require "spec_helper"

describe "Postgres recipe" do
  Vito::Tests::VagrantTestBox.boxes(:ubuntu10, :ubuntu12).each do |box|
    it "tests on #{box.name}" do
      setup_vagrant(box)

      assert_installation(box, "psql --version").should be_false

      Vito::DslFile.new.run do
        server do
          connection :ssh, command: "ssh -i ~/.vagrant.d/insecure_private_key vagrant@localhost -p#{box.ssh_port}", verbose: true
          install :postgres, username: 'sebasoga', password: '<PASSWORD>'
        end
      end

      assert_installation(box, "psql --version").should be_true
    end
  end
end
{'fraction_non_alphanumeric': 0.11082910321489002, 'fraction_numerical': 0.01015228426395939, 'mean_word_length': 3.349264705882353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '249834', 'n_tokens_mistral': 406, 'n_tokens_neox': 377, 'n_words': 98}