Tests for deprecated methods
This commit is contained in:
parent
8e05037a5f
commit
4efb93428e
|
@ -0,0 +1,21 @@
|
||||||
|
require "spec_helper"
|
||||||
|
|
||||||
|
describe MusicBrainz do
|
||||||
|
before(:each) {
|
||||||
|
STDOUT.stub!(:puts)
|
||||||
|
}
|
||||||
|
|
||||||
|
after(:all) {
|
||||||
|
MusicBrainz.cache_path.nil
|
||||||
|
}
|
||||||
|
|
||||||
|
it "allows deprecated use of cache_path" do
|
||||||
|
MusicBrainz.cache_path = "some/path"
|
||||||
|
MusicBrainz::Tools::Cache.cache_path.should == "some/path"
|
||||||
|
end
|
||||||
|
|
||||||
|
it "allows deprecated use of query_interval" do
|
||||||
|
MusicBrainz.query_interval = 2
|
||||||
|
MusicBrainz::Tools::Proxy.query_interval.should == 2
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue