<commit_before>require_relative './spec_helper'

describe 'Sun' do
  describe 'GET /v2/sun' do
    before { get '/v2/sun' }
    let(:body) { last_response.body }
    let(:json) { parse_json body }

    it 'includes all expected keys' do
      expect(body).to have_json_path('data/discovered_by')
      expect(body).to have_json_path('data/discovery_date')
      expect(body).to have_json_path('data/equatorial_inclination')
    end
  end
end<commit_msg>Update specs for Sun endpoint<commit_after>require_relative './spec_helper'

describe 'Sun' do
  describe 'GET /v2/sun' do
    before { get '/v2/sun' }
    let(:body) { last_response.body }
    let(:json) { parse_json body }

    it 'includes all expected keys' do
      expect(body).to have_json_path('data/discovered_by')
      expect(body).to have_json_path('data/discovery_date')
      expect(body).to have_json_path('data/equatorial_inclination')
      expect(body).to have_json_path('data/mean_radius')
      expect(body).to have_json_path('data/equatorial_circumference')
      expect(body).to have_json_path('data/volume')
    end
  end
end
{'fraction_non_alphanumeric': 0.12352406902815623, 'fraction_numerical': 0.0036330608537693005, 'mean_word_length': 3.9417040358744395, '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': '5064424', 'n_tokens_mistral': 373, 'n_tokens_neox': 363, 'n_words': 73}