We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60bd4d5 commit ab0cdfeCopy full SHA for ab0cdfe
spec/actions/create_file_spec.rb
@@ -131,6 +131,30 @@ def silence!
131
end
132
133
134
+
135
+ context "when file exists and it causes a file clash" do
136
+ before do
137
+ create_file("doc/config")
138
+ invoke!
139
+ end
140
141
+ it "generates a file clash" do
142
+ create_file("doc/config/config.rb")
143
+ expect(invoke!).to eq(" file_clash doc/config/config.rb\n")
144
145
146
147
+ context "when directory exists and it causes a file clash" do
148
149
+ create_file("doc/config/hello")
150
151
152
153
154
155
+ expect(invoke!) .to eq(" file_clash doc/config\n")
156
157
158
159
160
describe "#revoke!" do
0 commit comments