]>
git.r.bdr.sh - rbdr/lyricli.rb/blob - spec/lib/lyricli/source_manager_spec.rb
8f999a7bb26787d683d20ad559efbea24a119bbf
4 describe Lyricli
::SourceManager do
6 # Stub the configuration
7 @example_configuration = {"enabled_sources" => "test_class"}
8 Configuration
.stub(:'[]').and_return(@example_configuration)
9 Configuration
.stub(:delete)
11 # Stub the test class.
19 @example_artist = {:artist => "The Shins", :song => "Know Your Onion"}
21 Lyricli
::Sources::TestClass.stub(:enable)
22 Lyricli
::Sources::TestClass.stub(:reset)
23 Lyricli
::Sources::TestClass.stub(:current_track).and_return(@example_artist)