spec/guard_cache_spec.rb in ixtlan-guard-0.7.2 vs spec/guard_cache_spec.rb in ixtlan-guard-0.8.0

- old
+ new

@@ -1,7 +1,7 @@ require 'spec_helper' -require 'ixtlan/guard/guard_ng' +require 'ixtlan/guard/guard' require 'logger' require 'fileutils' $target = File.join("target", "guards", "users_guard.yml") FileUtils.mkdir_p(File.dirname($target)) @@ -10,15 +10,15 @@ $logger = Logger.new(STDOUT) def $logger.debug(&block) # info("\n\t[debug] " + block.call) end -describe Ixtlan::Guard::GuardNG do +describe Ixtlan::Guard::Guard do context "without caching" do def not_cached - $not_cached ||= Ixtlan::Guard::GuardNG.new(:guards_dir => File.dirname($target), + $not_cached ||= Ixtlan::Guard::Guard.new(:guards_dir => File.dirname($target), :logger => $logger ) end subject { not_cached } @@ -35,10 +35,10 @@ end end context "with caching" do def cached - $cached ||= Ixtlan::Guard::GuardNG.new(:guards_dir => File.dirname($target), + $cached ||= Ixtlan::Guard::Guard.new(:guards_dir => File.dirname($target), :logger => $logger, :cache => true) end subject { cached }