X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/f1e240a3c951aceb1d5d100c199e5a5b8d5eb6ec..refs/heads/main:/spec/lib/lyricli/source_manager_spec.rb diff --git a/spec/lib/lyricli/source_manager_spec.rb b/spec/lib/lyricli/source_manager_spec.rb index e69de29..8f999a7 100644 --- a/spec/lib/lyricli/source_manager_spec.rb +++ b/spec/lib/lyricli/source_manager_spec.rb @@ -0,0 +1,25 @@ +require "rspec" +require "lyricli" + +describe Lyricli::SourceManager do + before :each do + # Stub the configuration + @example_configuration = {"enabled_sources" => "test_class"} + Configuration.stub(:'[]').and_return(@example_configuration) + Configuration.stub(:delete) + + # Stub the test class. + module Lyricli + module Sources + module TestClass + end + end + end + + @example_artist = {:artist => "The Shins", :song => "Know Your Onion"} + + Lyricli::Sources::TestClass.stub(:enable) + Lyricli::Sources::TestClass.stub(:reset) + Lyricli::Sources::TestClass.stub(:current_track).and_return(@example_artist) + end +end