<commit_before>require 'spec_helper'
require 'byebug'

describe 'Shakin, a Sinatra joint,' do

  it "should allow access to the home page" do
    get "/"
    expect(last_response).to be_ok
  end

  it "should return html to /earthquakes" do
    get "/earthquakes"
    expect(last_response).to be_ok
    expect(last_response.header["content-type"]).to eq("text/html;charset=utf-8")
  end

  it "should return json for /earthquakes.json" do
    get "/earthquakes.json"
    expect(last_response).to be_ok
    expect(last_response.header["content-type"]).to eq("application/json;charset=utf-8")
  end
end<commit_msg>updated spec with new url versioning scheme<commit_after>require 'spec_helper'
require 'byebug'

describe 'Shakin, a Sinatra joint,' do

  it "should allow access to the home page" do
    get "/"
    expect(last_response).to be_ok
  end

  it "should return html to /v1/earthquakes" do
    get "/v1/earthquakes"
    expect(last_response).to be_ok
    expect(last_response.header["content-type"]).to eq("text/html;charset=utf-8")
  end

  it "should return json for /earthquakes.json" do
    get "/v1/earthquakes.json"
    expect(last_response).to be_ok
    expect(last_response.header["content-type"]).to eq("application/json;charset=utf-8")
  end
end
{'fraction_non_alphanumeric': 0.11797307996832937, 'fraction_numerical': 0.0055423594615993665, 'mean_word_length': 4.056, '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': '2599022', 'n_tokens_mistral': 443, 'n_tokens_neox': 422, 'n_words': 109}