test/unit/file_store_tests.rb in dassets-0.5.0 vs test/unit/file_store_tests.rb in dassets-0.6.0
- old
+ new
@@ -1,29 +1,30 @@
require 'assert'
-require 'dassets/root_path'
require 'dassets/file_store'
class Dassets::FileStore
- class BaseTests < Assert::Context
+ class NullTests < Assert::Context
desc "Dassets::NullFileStore"
subject{ Dassets::NullFileStore.new }
should have_reader :root
should have_imeths :save, :store_path
should "be a kind of FileStore" do
assert_kind_of Dassets::FileStore, subject
end
- should "build its root based on the config's root_path" do
- assert_equal Dassets::RootPath.new(''), subject.root
+ should "know its root path" do
+ assert_equal '', subject.root
end
should "build the store path based on a given url" do
+ assert_equal '/some/url', subject.store_path('some/url')
end
should "return the store path on save" do
+ assert_equal '/some/url', subject.save('some/url')
end
end
end