diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-19 10:30:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-19 10:30:41 -0600 |
| commit | 7a0d959332d84b31bfc1b35679a0a86cbd8e81e4 (patch) | |
| tree | 6efd776ddbe6828a913b57b8133006240657ddc0 /spec | |
| parent | 9f625d61d21a1b372d768f0c25e40ec07983a503 (diff) | |
add sample capybara spec and fluff route
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/home_spec.rb | 8 | ||||
| -rw-r--r-- | spec/spec_helper.rb | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb new file mode 100644 index 0000000..7d1710b --- /dev/null +++ b/spec/features/home_spec.rb @@ -0,0 +1,8 @@ +require "spec_helper" + +describe "home" do + it "should display the default home page" do + visit '/' + expect(page).to have_content "Hello Ruby Universe!" + end +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 943bc19..f5032ad 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,6 +3,8 @@ ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' +require 'capybara/rails' +require 'capybara/rspec' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. |
