如何在Cucumber下运行ruby-debug

# Gemfile
group :development, :test do
  # ... other gems here
  gem 'ruby-debug19', :require => 'ruby-debug'
end

# features/support/env.rb
require 'ruby-debug'

# features/step_definitions/some_definitions.rb
Then /^I debug$/ do
  debugger
end

http://www.robl.me/posts/i18n-translations-with-a-database-backend
https://github.com/dylanz/i18n_backend_database
https://github.com/svenfuchs/i18n-active_record

你可能感兴趣的:(debug)