Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update README

  • Loading branch information...
commit f7a5b9da364a125e2cb5208390e658342d908748 1 parent bb50742
blowmage authored

Showing 1 changed file with 41 additions and 8 deletions. Show diff stats Hide diff stats

  1. +41 8 README.rdoc
49 README.rdoc
Source Rendered
@@ -10,15 +10,20 @@ This installs the following gems:
10 10
11 11 minitest
12 12 minitest-rails
  13 + minitest-matchers
  14 + minitest-capybara
13 15 capybara
14 16
15 17 == Configure
16 18
17   -Follow the instructions to configure <tt>minitest-rails</tt>. Then add <tt>minitest-rails-capybara</tt> to the <tt>:test</tt> and <tt>:development</tt> groups in Gemfile:
  19 +Follow the instructions to configure <tt>minitest-rails</tt>. Then add <tt>minitest-rails-capybara</tt> to the <tt>:test</tt> group in Gemfile:
18 20
19   - group :test, :development do
20   - gem 'minitest-rails'
21   - gem 'minitest-rails-capybara'
  21 + group :development, :test do
  22 + gem "minitest-rails"
  23 + end
  24 +
  25 + group :test do
  26 + gem "minitest-rails-capybara"
22 27 end
23 28
24 29 Add the following to your <tt>minitest_helper.rb</tt> file to the <tt>test</tt> directory.
@@ -40,7 +45,18 @@ You can now use Capybara in your acceptance tests!
40 45 require "minitest_helper"
41 46
42 47 class CanAccessHomeTest < MiniTest::Rails::ActionDispatch::IntegrationTest
43   - test "the homepage has content" do
  48 + def test_homepage_has_content
  49 + visit root_path
  50 + assert page.has_content?("Home#index")
  51 + end
  52 + end
  53 +
  54 +Or, using the Spec DSL:
  55 +
  56 + require "minitest_helper"
  57 +
  58 + describe "Can Access Home Acceptance Test" do
  59 + it "has content" do
44 60 visit root_path
45 61 assert page.has_content?("Home#index")
46 62 end
@@ -54,6 +70,23 @@ https://groups.google.com/group/minitest-rails
54 70
55 71 == License
56 72
57   -Copyright © 2012 Mike Moore.
58   -
59   -Released under the MIT license. See `LICENSE` for details.
  73 +Copyright (c) 2012 Mike Moore
  74 +
  75 +Permission is hereby granted, free of charge, to any person obtaining
  76 +a copy of this software and associated documentation files (the
  77 +"Software"), to deal in the Software without restriction, including
  78 +without limitation the rights to use, copy, modify, merge, publish,
  79 +distribute, sublicense, and/or sell copies of the Software, and to
  80 +permit persons to whom the Software is furnished to do so, subject to
  81 +the following conditions:
  82 +
  83 +The above copyright notice and this permission notice shall be
  84 +included in all copies or substantial portions of the Software.
  85 +
  86 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  87 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  88 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  89 +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  90 +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  91 +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  92 +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 comments on commit f7a5b9d

Please sign in to comment.
Something went wrong with that request. Please try again.