<commit_before>require 'spec_helper'

describe BlueConductor::BandManager do
  subject { BlueConductor::BandManager.new(band, song) }

  let(:band) { '<NAME>' }
  let(:song) { 'Unchained' }
  let(:data) { "Change, nothin' stays the same" }
  let(:album) { 'Fair Warning' }
  let(:manager_mock) { mock(band: band, song: song, data: data) }
  let(:song_object) { BlueConductor::Song.new(manager_mock) }

  before do
    subject.url_generator = BlueConductor::SongFor::HTTP::UrlGenerator
    subject.request       = BlueConductor::SongFor::HTTP::Request
    subject.parser        = BlueConductor::SongFor::HTTP::Response
  end

  describe '.new' do
    it 'creates an instance of itself' do
     subject.band.should == band
      subject.song.should == song
    end
  end

  describe '#song' do
    context "when the name and band are valid" do
      it 'returns a song object' do<commit_msg>Changed the namespace in the bandmanager_spec<commit_after>require 'spec_helper'

describe BlueConductor::BandManager do
  subject { BlueConductor::BandManager.new(band, song) }

  let(:band) { '<NAME>' }
  let(:song) { 'Unchained' }
  let(:data) { "Change, nothin' stays the same" }
  let(:album) { 'Fair Warning' }
  let(:manager_mock) { mock(band: band, song: song, data: data) }
  let(:song_object) { BlueConductor::Song.new(manager_mock) }

  before do
    subject.url_generator = BlueConductor::HTTP::Song::UrlGenerator
    subject.request       = BlueConductor::HTTP::Request
    subject.parser        = BlueConductor::HTTP::Song::Response
  end

  describe '.new' do
    it 'creates an instance of itself' do
     subject.band.should == band
      subject.song.should == song
    end
  end

  describe '#song' do
    context "when the name and band are valid" do
      it 'returns a song object' do
{'fraction_non_alphanumeric': 0.12479108635097493, 'fraction_numerical': 0.0, 'mean_word_length': 3.802139037433155, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2221198', 'n_tokens_mistral': 595, 'n_tokens_neox': 553, 'n_words': 150}