Skip to content

Commit

Permalink
Fix typo in inject_into_module test
Browse files Browse the repository at this point in the history
`inject_into_module` checks `module`, not `class`.
  • Loading branch information
y-yagi committed May 31, 2018
1 parent 9ddc4ec commit a222676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/actions/file_manipulation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def file
expect(action(:inject_into_module, "application_helper.rb", ApplicationHelper, " def help; 'help'; end\n")).to eq(" insert application_helper.rb\n")
end

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

0 comments on commit a222676

Please sign in to comment.