test/unit/config_tests.rb in dassets-0.1.0 vs test/unit/config_tests.rb in dassets-0.2.0
- old
+ new
@@ -7,10 +7,11 @@
class BaseTests < Assert::Context
include NsOptions::AssertMacros
desc "Dassets::Config"
subject{ Dassets::Config }
- should have_option :root_path, Pathname, :required => true
+ should have_option :assets_file, Pathname, :default => ENV['DASSETS_ASSETS_FILE']
+ should have_option :root_path, Pathname, :required => true
should have_options :files_path, :digests_file_path
should "should use `apps/assets/public` as the default files path" do
exp_path = Dassets.config.root_path.join("app/assets/public").to_s
assert_equal exp_path, subject.files_path