module RailsConsoleCommands::ConsoleDelegation
Public Instance Methods
commander()
click to toggle source
# File lib/rails_console_commands/console_delegation.rb, line 7 def commander @commander ||= Commander.new end
test(*args)
click to toggle source
# File lib/rails_console_commands/console_delegation.rb, line 11 def test(*args) if Rails.env.test? commander.test(*args) else puts 'You can only run tests in a console started in the test environment. ' \ 'Use `rails console test` to start such a console' end end