Skip to content

Commit

Permalink
(#806) Use ASCII quotes instead of Unicode quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Nov 22, 2019
1 parent 061b6ab commit 4748aee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/pdk/cli/module/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module PDK::CLI
summary _('This command is now \'pdk build\'.')

run do |_opts, _args, _cmd|
PDK.logger.warn(_('Modules are built using the pdk build command.'))
PDK.logger.warn(_("Modules are built using the 'pdk build' command."))
exit 1
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pdk/cli/module/generate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module PDK::CLI

PDK::CLI::Util.validate_template_opts(opts)

PDK.logger.info(_('New modules are created using the pdk new module command.'))
PDK.logger.info(_("New modules are created using the 'pdk new module' command."))
prompt = TTY::Prompt.new(help_color: :cyan)
redirect = PDK::CLI::Util::CommandRedirector.new(prompt)
redirect.target_command('pdk new module')
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/pdk/cli/module/build_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

describe 'when called' do
it do
expect(logger).to receive(:warn).with(%r{Modules are built using the pdk build command}i)
expect(logger).to receive(:warn).with(%r{Modules are built using the 'pdk build' command}i)
expect {
PDK::CLI.run(%w[module build])
}.to exit_nonzero
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/pdk/cli/module/generate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
redirector = instance_double('PDK::CLI::Util::CommandRedirector')
allow(redirector).to receive(:target_command)
allow(redirector).to receive(:run).and_return(true)
expect(logger).to receive(:info).with(%r{New modules are created using the pdk new module command}i)
expect(logger).to receive(:info).with(%r{New modules are created using the 'pdk new module' command}i)
expect(PDK::CLI::Util::CommandRedirector).to receive(:new).and_return(redirector)
end

Expand Down

0 comments on commit 4748aee

Please sign in to comment.