Skip to content

Commit

Permalink
Merge pull request eifion#297 from nomfjmt/master
Browse files Browse the repository at this point in the history
Japanese translation of 285 and 286 + fixed typos on relevant en episodes
  • Loading branch information
eifion committed Oct 16, 2011
2 parents 7f6d182 + de98cfc commit 3427f0d
Show file tree
Hide file tree
Showing 5 changed files with 650 additions and 7 deletions.
6 changes: 6 additions & 0 deletions episodes/000_summaries/summaries_ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,10 @@
284 - Active Admin
Active Adminを利用すると、わずかなコマンドですばやく管理用画面を作成できます。外観がきれいなだけでなく、今回のエピソードで紹介するように自由にカスタマイズが可能です。
[administration, plugins]
285 - Spork
Sporkは、Railsアプリケーションを一度バックグラウンドで起動することでテストスイートの読み込み時間を改善します。Guardと一緒に使えば最強の組み合わせとなり、テスト駆動開発で素早いフィードバックを得ることができます。
[testing, plugins, tools]
286 - Draper
複雑なビューロジックをDraperで整理しましょう。Draper gemが提供する、presenterにとても似たdecoratorを使って、ビューロジックをオブジェクト指向的な手法でまとめることができます。今回のエピソードでは、複雑なテンプレートをステップバイステップでdecoratorにリファクタリングします。
[views, plugins, refactoring]

6 changes: 3 additions & 3 deletions episodes/285/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<h3>Installing Spork</h3>

<p>Spork is installed in the same way any other gem, although as it&rsquo;s only used for testing we add it to the <code>test</code> group in the <code>Gemfile</code>. As we&rsquo;re installing it for a Rails 3 application we&rsquo;ll need to install the prerelease version of the gem, which is currently version <code>0.9.0.rc</code>.</p>
<p>Spork is installed in the same way as any other gem, although as it&rsquo;s only used for testing we add it to the <code>test</code> group in the <code>Gemfile</code>. As we&rsquo;re installing it for a Rails 3 application we&rsquo;ll need to install the prerelease version of the gem, which is currently version <code>0.9.0.rc</code>.</p>

<p class="codeFilePath">/Gemfile</p>
<pre class="ruby">gem &quot;rspec-rails&quot;, :group =&gt; [:test, :development]
Expand Down Expand Up @@ -95,7 +95,7 @@ <h3>Installing Spork</h3>

<p>As the server starts up it runs the code in the <code>prefork</code> method so that this code only needs to be run once. We can now open up another terminal window and run our test suite. We&rsquo;ll need to run the tests through the Spork server, which we do by passing in the <code>--drb</code> option.</p>

<p>When we run the tests through Spork the spec suite runs more quickly and if we run the them under the <code>time</code> command again we&rsquo;ll see that this now takes much less time to complete. This time gain will increase the bigger our Rails application becomes.</p>
<p>When we run the tests through Spork the spec suite runs more quickly and if we run them under the <code>time</code> command again we&rsquo;ll see that this now takes much less time to complete. This time gain will increase the bigger our Rails application becomes.</p>

<pre class="terminal">$ time rspec . --drb
.........
Expand Down Expand Up @@ -134,7 +134,7 @@ <h3>Using Guard With Spork</h3>
watch(&#x27;spec/spec_helper.rb&#x27;)
end</pre>

<p>We&rsquo;ll need to move this section up above the RSpec section as it needs to run before any other test-related guards. We&rsquo;ll also need to modify the RSpec <code>guard</code> and add a <code>:cli</code> option with a value of <code>--drb</code>. This ensures that the specs are run through Spork and it applies to any other guards we might have,for example for Cucumber.</p>
<p>We&rsquo;ll need to move this section up above the RSpec section as it needs to run before any other test-related guards. We&rsquo;ll also need to modify the RSpec <code>guard</code> and add a <code>:cli</code> option with a value of <code>--drb</code>. This ensures that the specs are run through Spork and it applies to any other guards we might have, for example for Cucumber.</p>

<pre class="terminal">guard &#x27;rspec&#x27;, :version =&gt; 2, :cli =&gt; &#x27;--drb&#x27; do
# Content omitted.
Expand Down
Loading

0 comments on commit 3427f0d

Please sign in to comment.