Skip to content

Commit 7bdc802

Browse files
committed
Fixes typos in spec/actions/inject_into_file_spec.rb
1 parent e6a647b commit 7bdc802

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/actions/inject_into_file_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def file
5656
expect(File.read(file)).to eq("__start__\nREADME\n__end__\n")
5757
end
5858

59-
it "does not change the file if already include content" do
59+
it "does not change the file if already includes content" do
6060
invoke! "doc/README", :before => "__end__" do
6161
"more content\n"
6262
end
@@ -70,7 +70,7 @@ def file
7070
expect(File.read(file)).to eq("__start__\nREADME\nmore content\n__end__\n")
7171
end
7272

73-
it "does change the file if already include content and :force == true" do
73+
it "does change the file if already includes content and :force is true" do
7474
invoke! "doc/README", :before => "__end__" do
7575
"more content\n"
7676
end
@@ -87,26 +87,26 @@ def file
8787
end
8888

8989
describe "#revoke!" do
90-
it "substracts the destination file after injection" do
90+
it "subtracts the destination file after injection" do
9191
invoke! "doc/README", "\nmore content", :after => "__start__"
9292
revoke! "doc/README", "\nmore content", :after => "__start__"
9393
expect(File.read(file)).to eq("__start__\nREADME\n__end__\n")
9494
end
9595

96-
it "substracts the destination file before injection" do
96+
it "subtracts the destination file before injection" do
9797
invoke! "doc/README", "more content\n", :before => "__start__"
9898
revoke! "doc/README", "more content\n", :before => "__start__"
9999
expect(File.read(file)).to eq("__start__\nREADME\n__end__\n")
100100
end
101101

102-
it "substracts even with double after injection" do
102+
it "subtracts even with double after injection" do
103103
invoke! "doc/README", "\nmore content", :after => "__start__"
104104
invoke! "doc/README", "\nanother stuff", :after => "__start__"
105105
revoke! "doc/README", "\nmore content", :after => "__start__"
106106
expect(File.read(file)).to eq("__start__\nanother stuff\nREADME\n__end__\n")
107107
end
108108

109-
it "substracts even with double before injection" do
109+
it "subtracts even with double before injection" do
110110
invoke! "doc/README", "more content\n", :before => "__start__"
111111
invoke! "doc/README", "another stuff\n", :before => "__start__"
112112
revoke! "doc/README", "more content\n", :before => "__start__"
@@ -120,7 +120,7 @@ def file
120120
expect(File.read(file)).to eq("another stuff\n__start__\nREADME\n__end__\n")
121121
end
122122

123-
it "substracts when appending" do
123+
it "subtracts when appending" do
124124
invoke! "doc/README", "more content\n", :before => /\z/
125125
invoke! "doc/README", "another stuff\n", :before => /\z/
126126
revoke! "doc/README", "more content\n", :before => /\z/

0 commit comments

Comments
 (0)