@@ -6,8 +6,8 @@ describe "Repository" do
6
6
context " failures" do
7
7
context " json" do
8
8
it " raises error on bad mint.json" do
9
- FileUtils .mkdir_p(" #{ tmp_dir } /success " )
10
- File .write(" #{ tmp_dir } /success /mint.json" , " hello" )
9
+ FileUtils .mkdir_p(" #{ tmp_dir } /260ca9dd8a4577fc00b7bd5810298076 " )
10
+ File .write(" #{ tmp_dir } /260ca9dd8a4577fc00b7bd5810298076 /mint.json" , " hello" )
11
11
12
12
repository = Mint ::Installer ::Repository .new(" name" , " success" )
13
13
@@ -24,7 +24,7 @@ describe "Repository" do
24
24
end
25
25
26
26
it " raises error on no mint.json" do
27
- FileUtils .rm_rf(" #{ tmp_dir } /success " )
27
+ FileUtils .rm_rf(" #{ tmp_dir } /260ca9dd8a4577fc00b7bd5810298076 " )
28
28
29
29
repository = Mint ::Installer ::Repository .new(" name" , " success" )
30
30
@@ -91,7 +91,7 @@ describe "Repository" do
91
91
end
92
92
93
93
it " raises error on clone" do
94
- FileUtils .rm_rf(" #{ tmp_dir } /error " )
94
+ FileUtils .rm_rf(" #{ tmp_dir } /cb5e100e5a9a3e7f6d1fd97512215282 " )
95
95
96
96
message = <<-MESSAGE
97
97
░ ERROR (REPOSITORY_COULD_NOT_CLONE) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
@@ -115,7 +115,7 @@ describe "Repository" do
115
115
end
116
116
117
117
it " raises error on update" do
118
- FileUtils .mkdir_p(" #{ tmp_dir } /error " )
118
+ FileUtils .mkdir_p(" #{ tmp_dir } /cb5e100e5a9a3e7f6d1fd97512215282 " )
119
119
120
120
message = <<-MESSAGE
121
121
░ ERROR (REPOSITORY_COULD_NOT_UPDATE) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
@@ -146,14 +146,14 @@ describe "Repository" do
146
146
end
147
147
148
148
it " clones successfully" do
149
- FileUtils .rm_rf(" #{ tmp_dir } /success " )
149
+ FileUtils .rm_rf(" #{ tmp_dir } /260ca9dd8a4577fc00b7bd5810298076 " )
150
150
151
151
repository = Mint ::Installer ::Repository .open(" name" , " success" )
152
152
repository.output.should eq(" ✔ Cloned name (success)" )
153
153
end
154
154
155
155
it " updates successfully" do
156
- FileUtils .mkdir_p(" #{ tmp_dir } /success " )
156
+ FileUtils .mkdir_p(" #{ tmp_dir } /260ca9dd8a4577fc00b7bd5810298076 " )
157
157
158
158
repository = Mint ::Installer ::Repository .open(" name" , " success" )
159
159
repository.output.should eq(" ✔ Updated name (success)" )
0 commit comments