Skip to content

Commit a222676

Browse files
committed
Fix typo in inject_into_module test
`inject_into_module` checks `module`, not `class`.
1 parent 9ddc4ec commit a222676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/actions/file_manipulation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def file
373373
expect(action(:inject_into_module, "application_helper.rb", ApplicationHelper, " def help; 'help'; end\n")).to eq(" insert application_helper.rb\n")
374374
end
375375

376-
it "does not append if class name does not match" do
376+
it "does not append if module name does not match" do
377377
action :inject_into_module, "application_helper.rb", "App", " def help; 'help'; end\n"
378378
expect(File.binread(file)).to eq("module ApplicationHelper\nend\n")
379379
end

0 commit comments

Comments
 (0)