@@ -56,7 +56,7 @@ def file
56
56
expect ( File . read ( file ) ) . to eq ( "__start__\n README\n __end__\n " )
57
57
end
58
58
59
- it "does not change the file if already include content" do
59
+ it "does not change the file if already includes content" do
60
60
invoke! "doc/README" , :before => "__end__" do
61
61
"more content\n "
62
62
end
@@ -70,7 +70,7 @@ def file
70
70
expect ( File . read ( file ) ) . to eq ( "__start__\n README\n more content\n __end__\n " )
71
71
end
72
72
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
74
74
invoke! "doc/README" , :before => "__end__" do
75
75
"more content\n "
76
76
end
@@ -87,26 +87,26 @@ def file
87
87
end
88
88
89
89
describe "#revoke!" do
90
- it "substracts the destination file after injection" do
90
+ it "subtracts the destination file after injection" do
91
91
invoke! "doc/README" , "\n more content" , :after => "__start__"
92
92
revoke! "doc/README" , "\n more content" , :after => "__start__"
93
93
expect ( File . read ( file ) ) . to eq ( "__start__\n README\n __end__\n " )
94
94
end
95
95
96
- it "substracts the destination file before injection" do
96
+ it "subtracts the destination file before injection" do
97
97
invoke! "doc/README" , "more content\n " , :before => "__start__"
98
98
revoke! "doc/README" , "more content\n " , :before => "__start__"
99
99
expect ( File . read ( file ) ) . to eq ( "__start__\n README\n __end__\n " )
100
100
end
101
101
102
- it "substracts even with double after injection" do
102
+ it "subtracts even with double after injection" do
103
103
invoke! "doc/README" , "\n more content" , :after => "__start__"
104
104
invoke! "doc/README" , "\n another stuff" , :after => "__start__"
105
105
revoke! "doc/README" , "\n more content" , :after => "__start__"
106
106
expect ( File . read ( file ) ) . to eq ( "__start__\n another stuff\n README\n __end__\n " )
107
107
end
108
108
109
- it "substracts even with double before injection" do
109
+ it "subtracts even with double before injection" do
110
110
invoke! "doc/README" , "more content\n " , :before => "__start__"
111
111
invoke! "doc/README" , "another stuff\n " , :before => "__start__"
112
112
revoke! "doc/README" , "more content\n " , :before => "__start__"
@@ -120,7 +120,7 @@ def file
120
120
expect ( File . read ( file ) ) . to eq ( "another stuff\n __start__\n README\n __end__\n " )
121
121
end
122
122
123
- it "substracts when appending" do
123
+ it "subtracts when appending" do
124
124
invoke! "doc/README" , "more content\n " , :before => /\z /
125
125
invoke! "doc/README" , "another stuff\n " , :before => /\z /
126
126
revoke! "doc/README" , "more content\n " , :before => /\z /
0 commit comments