Skip to content

Commit

Permalink
example of a slow acceptance test that boots rails
Browse files Browse the repository at this point in the history
  • Loading branch information
Collin Schaafsma committed Feb 29, 2012
1 parent f9a8d3b commit 312442d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions spec/slow/acceptance/buildings_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require './spec/slow/spec_helper'

feature "User can manage buildings" do
background do
end

scenario "User can list buildings" do
visit('/buildings')
page.should have_content('Listing buildings')
end
end
4 changes: 2 additions & 2 deletions spec/slow/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ENV['RACK_ENV'] = "test"
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require File.expand_path("../../../config/environment", __FILE__)
require 'capybara/rails'
require 'capybara/rspec'
require 'shoulda/matchers/active_record'
require 'shoulda/matchers/active_model'
Expand Down

0 comments on commit 312442d

Please sign in to comment.