spec/spec_helper.rb in tekeya-0.0.7 vs spec/spec_helper.rb in tekeya-0.0.9

- old
+ new

@@ -33,11 +33,11 @@ config.before(:each) do DatabaseCleaner.clean end - config.after(:each) do + config.before(:each) do Tekeya.relations.truncate Tekeya.redis.flushall end config.before(:all) do @@ -61,11 +61,11 @@ "dbfilename" => "dump.rdb", "dir" => REDIS_CACHE_PATH, "loglevel" => "debug", "logfile" => "stdout", "databases" => 16 - }.map { |k, v| "#{k} #{v}" }.join('\n') + }.map { |k, v| "#{k} #{v}" }.join("\n") `echo '#{redis_options}' | redis-server -` end config.after(:suite) do %x{ @@ -73,6 +73,6 @@ rm -f #{REDIS_CACHE_PATH}dump.rdb } FileUtils.rm_r "#{File.dirname(__FILE__)}/rails_app/db/test.sqlite3" rescue nil end -end \ No newline at end of file +end