mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:36:21 +00:00
arreglar algunos tests
This commit is contained in:
parent
da0504d482
commit
01ac92f2a2
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ require 'test_helper'
|
||||||
class PostTest < ActiveSupport::TestCase
|
class PostTest < ActiveSupport::TestCase
|
||||||
setup do
|
setup do
|
||||||
@user = Usuaria.find('f@kefir.red')
|
@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
|
@site = @user.sites.select { |s| s.name == 'cyber-women.com' }.first
|
||||||
@post = @site.posts.sample
|
@post = @site.posts.sample
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,7 +5,7 @@ require 'test_helper'
|
||||||
class SiteTest < ActiveSupport::TestCase
|
class SiteTest < ActiveSupport::TestCase
|
||||||
setup do
|
setup do
|
||||||
@user = Usuaria.find('f@kefir.red')
|
@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)
|
reset_git_repo(@path)
|
||||||
@site = @user.sites.select { |s| s.name == 'cyber-women.com' }.first
|
@site = @user.sites.select { |s| s.name == 'cyber-women.com' }.first
|
||||||
@site.read
|
@site.read
|
||||||
|
|
Loading…
Reference in a new issue