Skip to content

Commit

Permalink
Merge pull request #49 from LimeBlast/patch-1
Browse files Browse the repository at this point in the history
adds labels to source code examples
  • Loading branch information
Trung Lê committed Jun 26, 2015
2 parents bc10ff8 + 665155b commit f9ef61b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/guides/getting-started.md
Expand Up @@ -502,6 +502,7 @@ Our view needs to loop over all available records and render them.
Let's write a test to force this change in our view:

```ruby
# spec/web/views/books/index_spec.rb
require 'spec_helper'
require_relative '../../../../apps/web/views/books/index'

Expand Down Expand Up @@ -563,6 +564,7 @@ action does not actually [_expose_](/guides/actions/exposures) the books to our
that change:

```ruby
# spec/web/controllers/books/index_spec.rb
require 'spec_helper'
require_relative '../../../../apps/web/controllers/books/index'

Expand Down Expand Up @@ -592,6 +594,7 @@ Writing tests for controller actions is basically two-fold: you either assert on
Now we've specified that the action exposes `:books`, we can implement our action:

```ruby
# apps/web/controllers/books/index.rb
module Web::Controllers::Books
class Index
include Web::Action
Expand Down

0 comments on commit f9ef61b

Please sign in to comment.