<commit_before>require 'spec_helper'

describe 'Sheldon 6artisans webserver' do

  it 'has nginx installed' do
    expect(package 'nginx').to be_installed
  end

  it 'is running' do
    expect(service 'nginx').to be_enabled
    expect(service 'nginx').to be_running
  end

  xit 'responds to request with response from rails app' do
    #think about adding domains to host file
    expect(command 'curl http://www.fofrslevy.cz').to return_stdout(/.*<title>Fofrslevy.cz<\/title>.*/)
  end

end<commit_msg>Change serverspec to check for application title - rubygems<commit_after>require 'spec_helper'

describe 'Sheldon 6artisans webserver' do

  it 'has nginx installed' do
    expect(package 'nginx').to be_installed
  end

  it 'is running' do
    expect(service 'nginx').to be_enabled
    expect(service 'nginx').to be_running
  end

  xit 'responds to request with response from rails app' do
    #think about adding domains to host file
    expect(command 'curl http://localhost').to return_stdout(/.*<title>RubyGems.org | your community gem host<\/title>.*/)
  end

end
{'fraction_non_alphanumeric': 0.10046511627906977, 'fraction_numerical': 0.0018604651162790699, 'mean_word_length': 4.004651162790697, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '3611504', 'n_tokens_mistral': 358, 'n_tokens_neox': 332, 'n_words': 110}