Skip to content

Commit baf7e46

Browse files
committed
test inject_into_file with pretend
1 parent 003d113 commit baf7e46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/actions/inject_into_file_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ def file
6262
expect(invoke!("doc/README", "\nmore content", :after => "__start__")).to eq(" insert doc/README\n")
6363
end
6464

65+
it "logs status if pretending" do
66+
invoker(:pretend => true)
67+
expect(invoke!("doc/README", "\nmore content", :after => "__start__")).to eq(" insert doc/README\n")
68+
end
69+
6570
it "does not change the file if pretending" do
6671
invoker :pretend => true
6772
invoke! "doc/README", "\nmore content", :after => "__start__"

0 commit comments

Comments
 (0)