1
0
Fork 0

Tests for deprecated methods

This commit is contained in:
Gregory Eremin 2012-07-06 19:23:47 +04:00
parent 8e05037a5f
commit 4efb93428e
1 changed files with 21 additions and 0 deletions

View File

@ -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