Added Capybara
parent
f6a5914b76
commit
662bbc98f7
2
Gemfile
2
Gemfile
|
@ -34,4 +34,6 @@ group :development, :test do
|
|||
gem 'simplecov'
|
||||
end
|
||||
|
||||
gem 'capybara', group: :test
|
||||
|
||||
gem 'devise', github: 'plataformatec/devise'
|
||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -52,6 +52,12 @@ GEM
|
|||
bcrypt (3.1.7)
|
||||
bson (2.2.2)
|
||||
builder (3.2.2)
|
||||
capybara (2.2.1)
|
||||
mime-types (>= 1.16)
|
||||
nokogiri (>= 1.3.3)
|
||||
rack (>= 1.0.0)
|
||||
rack-test (>= 0.5.4)
|
||||
xpath (~> 2.0)
|
||||
coderay (1.1.0)
|
||||
coffee-rails (4.0.1)
|
||||
coffee-script (>= 2.2.0)
|
||||
|
@ -86,12 +92,15 @@ GEM
|
|||
treetop (~> 1.4.8)
|
||||
method_source (0.8.2)
|
||||
mime-types (1.25.1)
|
||||
mini_portile (0.5.3)
|
||||
minitest (5.3.2)
|
||||
moped (2.0.0.rc1)
|
||||
bson (~> 2.2)
|
||||
connection_pool (~> 2.0)
|
||||
optionable (~> 0.2.0)
|
||||
multi_json (1.9.2)
|
||||
nokogiri (1.6.1)
|
||||
mini_portile (~> 0.5.0)
|
||||
optionable (0.2.0)
|
||||
origin (2.1.1)
|
||||
orm_adapter (0.5.0)
|
||||
|
@ -184,11 +193,14 @@ GEM
|
|||
json (>= 1.8.0)
|
||||
warden (1.2.3)
|
||||
rack (>= 1.0)
|
||||
xpath (2.0.0)
|
||||
nokogiri (~> 1.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
capybara
|
||||
coffee-rails
|
||||
devise!
|
||||
foundation-icons-sass-rails
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'User Registration' do
|
||||
it 'creates a new user account' do
|
||||
visit '/'
|
||||
expect(page).to have_content 'Farmbot'
|
||||
end
|
||||
end
|
|
@ -6,7 +6,8 @@ require 'pry'
|
|||
ENV["RAILS_ENV"] ||= 'test'
|
||||
require File.expand_path("../../config/environment", __FILE__)
|
||||
require 'rspec/rails'
|
||||
|
||||
require 'capybara/rails'
|
||||
require 'capybara/rspec'
|
||||
# Requires supporting ruby files with custom matchers and macros, etc, in
|
||||
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
||||
# run as spec files by default. This means that files in spec/support that end
|
||||
|
|
Loading…
Reference in New Issue