<commit_before>require "spec_helper"

module Transferatu::Endpoints
  describe Transfers do
    include Rack::Test::Methods

    def app
      Transfers
    end

    describe "GET /transfers" do
      # TODO: fix; fails because of auth issues
      xit "succeeds" do
        get "/transfers"
        last_response.status.should eq(200)
      end
    end
  end
end<commit_msg>Add authentication to transfers specs<commit_after>require "spec_helper"

module Transferatu::Endpoints
  describe Transfers do
    include Rack::Test::Methods

    def app
      Transfers
    end

    before do
      password = '<PASSWORD>'
      @user = create(:user, password: password)
      authorize @user.name, password
    end

    describe "GET /transfers" do
      it "succeeds" do
        get "/transfers"
        last_response.status.should eq(200)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07415990730011587, 'fraction_numerical': 0.006952491309385863, 'mean_word_length': 2.526530612244898, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2992853', 'n_tokens_mistral': 265, 'n_tokens_neox': 250, 'n_words': 78}