From 01ac92f2a2f9e1a01c38d1b6a75037a6bc8d836f Mon Sep 17 00:00:00 2001 From: f Date: Tue, 26 Mar 2019 12:52:54 -0300 Subject: [PATCH] arreglar algunos tests --- test/models/post_test.rb | 1 - test/models/site_test.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/models/post_test.rb b/test/models/post_test.rb index ee441b4..7ac5ba0 100644 --- a/test/models/post_test.rb +++ b/test/models/post_test.rb @@ -5,7 +5,6 @@ require 'test_helper' class PostTest < ActiveSupport::TestCase setup do @user = Usuaria.find('f@kefir.red') - @path = File.join(Site.site_path_for(@user), 'cyber-women.com') @site = @user.sites.select { |s| s.name == 'cyber-women.com' }.first @post = @site.posts.sample end diff --git a/test/models/site_test.rb b/test/models/site_test.rb index e655a9d..ce6e475 100644 --- a/test/models/site_test.rb +++ b/test/models/site_test.rb @@ -5,7 +5,7 @@ require 'test_helper' class SiteTest < ActiveSupport::TestCase setup do @user = Usuaria.find('f@kefir.red') - @path = File.join(Site.site_path_for(@user), 'cyber-women.com') + @path = File.join(@user.path, 'cyber-women.com') reset_git_repo(@path) @site = @user.sites.select { |s| s.name == 'cyber-women.com' }.first @site.read