mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
test should be configuring git info
This commit is contained in:
parent
3dcad123f5
commit
95d095c97d
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ describe RemoteTheme do
|
||||||
dir = Dir.tmpdir
|
dir = Dir.tmpdir
|
||||||
repo_dir = "#{dir}/#{SecureRandom.hex}"
|
repo_dir = "#{dir}/#{SecureRandom.hex}"
|
||||||
`mkdir #{repo_dir}`
|
`mkdir #{repo_dir}`
|
||||||
`cd #{repo_dir} && git init .`
|
`cd #{repo_dir} && git init . `
|
||||||
|
`cd #{repo_dir} && git config user.email 'someone@cool.com'`
|
||||||
|
`cd #{repo_dir} && git config user.name 'The Cool One'`
|
||||||
`cd #{repo_dir} && mkdir desktop mobile common`
|
`cd #{repo_dir} && mkdir desktop mobile common`
|
||||||
files.each do |name, data|
|
files.each do |name, data|
|
||||||
File.write("#{repo_dir}/#{name}", data)
|
File.write("#{repo_dir}/#{name}", data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue