ITeye博客

如何在Cucumber下运行ruby-debug

夜鸣猪 · 2012-04-07 00:19 · Ruby On Rails · Ruby 1.9 · 编程语言 · Markdown


# 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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。