<commit_before>require "rails_helper"

RSpec.describe "Acceptance Test", :type => :request do
  before(:each) do
      DatabaseCleaner.clean_with(:truncation, reset_ids: true)
  end

  context 'cast soul Acceptance test' do
    it "registers device" do
      post "/devices.json", 
        params: { device: {
        latitude:100, 
        longitude:100, 
        radius:20, 
        token:"<KEY>" } }
      expect(response).to have_http_status(201) 
    end

    xit "receives id" do
    end

    xit "sends soul" do
    end

    xit "receives confirmation" do
    end
  end

  context 'nearby Acceptance Test' do
    xit "send soul when others out of range" do
    end
    xit "check it is not received" do
    end
    xit "others move into range" do<commit_msg>working on cast acceptance test<commit_after>require "rails_helper"

RSpec.describe "Acceptance Test", :type => :request do
  before(:each) do
      DatabaseCleaner.clean_with(:truncation, reset_ids: true)
  end

  context 'cast soul Acceptance test' do
    post "/devices.json", 
        params: { device: {
        latitude:100, 
        longitude:100, 
        radius:20, 
        token:"<KEY>" } }

    it "registers device" do
      expect(response).to have_http_status(201) 
    end

    it "receives id" do
      
    end

    xit "sends soul" do
    end

    xit "receives confirmation" do
    end
  end

  context 'nearby Acceptance Test' do
    xit "send soul when others out of range" do
    end
    xit "check it is not received" do
    end
    xit "others move into range" do
{'fraction_non_alphanumeric': 0.08628461043142305, 'fraction_numerical': 0.014166130070830651, 'mean_word_length': 2.4456762749445677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2214395', 'n_tokens_mistral': 531, 'n_tokens_neox': 476, 'n_words': 163}