effective_test_bot 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +86 -0
- data/Rakefile +20 -0
- data/lib/effective_test_bot.rb +9 -0
- data/lib/effective_test_bot/engine.rb +11 -0
- data/lib/effective_test_bot/version.rb +3 -0
- data/lib/generators/effective_test_bot/install_generator.rb +57 -0
- data/lib/generators/templates/effective_test_bot.rb +4 -0
- data/lib/generators/templates/rspec/rails_helper.rb +55 -0
- data/lib/generators/templates/rspec/spec_helper.rb +90 -0
- data/spec/features/devise/sign_in_spec.rb +43 -0
- data/spec/features/devise/sign_up_spec.rb +29 -0
- data/spec/features/home_page_spec.rb +8 -0
- data/spec/models/user_spec.rb +19 -0
- metadata +176 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bd9465fd7ef8cee84ca7beacfc422ac8d7021929
|
4
|
+
data.tar.gz: 4e70e95935925d5c1f791a7fcadebb1f91865b57
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 25cce1951e9c7d13d75fab3d4e1636cc0dd96079714fd8cd351ea73ed88c8bf7620c3a994a8814019b80beaf34f483d0b689944bdcd27ff0e393cdf689e19c2d
|
7
|
+
data.tar.gz: 5fd879cd6387a5573edec8c73c4aad0fe4b1f8f93805a09db655f85d0c96ef3cc4b651ba906141f9a0f1bfd8a1f91bc3779558fef09bc8daf80ee9076dee8417
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 Code and Effect Inc.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
# Effective TestBot
|
2
|
+
|
3
|
+
A shared library of rails model & capybara-based feature tests that should pass in every Rails application.
|
4
|
+
|
5
|
+
Also provides a one-liner installation & configuration of rspec-rails, guard, and capybara test environment.
|
6
|
+
|
7
|
+
Rails 3.2.x and 4.x
|
8
|
+
|
9
|
+
|
10
|
+
## Getting Started
|
11
|
+
|
12
|
+
Add to your Gemfile:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'effective_test_bot'
|
16
|
+
```
|
17
|
+
|
18
|
+
Run the bundle command to install it:
|
19
|
+
|
20
|
+
```console
|
21
|
+
bundle install
|
22
|
+
```
|
23
|
+
|
24
|
+
Then run the generator:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
rails generate effective_test_bot:install
|
28
|
+
```
|
29
|
+
|
30
|
+
The above command will first invoke the default `rspec-rails` and `guard` installation tasks, if they haven't already been run.
|
31
|
+
|
32
|
+
It will then copy the packaged `spec_helper.rb`, `rails_helper.rb` and other rspec/testing configuration files that match this gem author's opinionated testing environment.
|
33
|
+
|
34
|
+
Run the test suite with either rspec, or guard, or as you normally would:
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
bundle exec guard # (then press ENTER)
|
38
|
+
```
|
39
|
+
|
40
|
+
or
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
bundle exec rspec
|
44
|
+
```
|
45
|
+
|
46
|
+
You should now see multiple -- hopefully passing -- tests that you didn't write!
|
47
|
+
|
48
|
+
|
49
|
+
### Existing rspec installation
|
50
|
+
|
51
|
+
If you already have an existing rspec installation that works with `capybara` and `capybara-webkit`, you will only need to add this one line to your `spec/spec_helper.rb`:
|
52
|
+
|
53
|
+
```
|
54
|
+
RSpec.configure do |config|
|
55
|
+
config.files_or_directories_to_run = ['spec', '../effective_test_bot/spec']
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
MIT License. Copyright [Code and Effect Inc.](http://www.codeandeffect.com/)
|
63
|
+
|
64
|
+
Code and Effect is the product arm of [AgileStyle](http://www.agilestyle.com/), an Edmonton-based shop that specializes in building custom web applications with Ruby on Rails.
|
65
|
+
|
66
|
+
|
67
|
+
## Testing
|
68
|
+
|
69
|
+
The test suite for this gem is unfortunately not yet complete.
|
70
|
+
|
71
|
+
Run tests by:
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
rake spec
|
75
|
+
```
|
76
|
+
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
1. Fork it
|
81
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
82
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
83
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
84
|
+
5. Bonus points for test coverage
|
85
|
+
6. Create new Pull Request
|
86
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
begin
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
|
8
|
+
# Testing tasks
|
9
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
10
|
+
load 'rails/tasks/engine.rake'
|
11
|
+
|
12
|
+
Bundler::GemHelper.install_tasks
|
13
|
+
|
14
|
+
require 'rspec/core'
|
15
|
+
require 'rspec/core/rake_task'
|
16
|
+
|
17
|
+
desc "Run all specs in spec directory (excluding plugin specs)"
|
18
|
+
RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
|
19
|
+
|
20
|
+
task :default => :spec
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module EffectiveTestBot
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
engine_name 'effective_test_bot'
|
4
|
+
|
5
|
+
# Set up our default configuration options.
|
6
|
+
initializer "effective_test_bot.defaults", :before => :load_config_initializers do |app|
|
7
|
+
# Set up our defaults, as per our initializer template
|
8
|
+
eval File.read("#{config.root}/lib/generators/templates/effective_test_bot.rb")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module EffectiveTestBot
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
include Rails::Generators::Migration
|
5
|
+
|
6
|
+
desc "Creates an EffectiveTestBot initializer in your application."
|
7
|
+
|
8
|
+
source_root File.expand_path("../../templates", __FILE__)
|
9
|
+
|
10
|
+
def install_rspec
|
11
|
+
return if File.exists?('spec/spec_helper.rb')
|
12
|
+
puts '[effective_test_bot] installing rspec'
|
13
|
+
run 'bundle exec rails generate rspec:install'
|
14
|
+
end
|
15
|
+
|
16
|
+
def install_guard
|
17
|
+
return if File.exists?('Guardfile')
|
18
|
+
puts '[effective_test_bot] installing guard'
|
19
|
+
run 'bundle exec guard init'
|
20
|
+
puts ""
|
21
|
+
end
|
22
|
+
|
23
|
+
def explain_overwrite
|
24
|
+
puts '[effective_test_bot] Successfully installed/detected: rspec-rails and guard.'
|
25
|
+
puts ""
|
26
|
+
puts 'Starting effective_test_bot specific installation tasks:'
|
27
|
+
puts ""
|
28
|
+
puts "You will be prompted to overwrite the default rspec-rails configuration"
|
29
|
+
puts "files with those packaged inside the effective_test_bot gem."
|
30
|
+
puts ""
|
31
|
+
puts "If you have very specific existing rspec-rails configuration,"
|
32
|
+
puts "you may want to skip (press 'n') to the following overwrites"
|
33
|
+
puts "and refer to the GitHub documentation for this gem:"
|
34
|
+
puts "https://github.com/code-and-effect/effective_test_bot"
|
35
|
+
puts ""
|
36
|
+
puts "Otherwise, press 'Y' to all the following prompts to automatically configure"
|
37
|
+
puts "rspec-rails to run with guard, capybara-webkit, and effective_test_bot test coverage"
|
38
|
+
puts ""
|
39
|
+
end
|
40
|
+
|
41
|
+
def copy_initializer
|
42
|
+
template "effective_test_bot.rb", "config/initializers/effective_test_bot.rb"
|
43
|
+
end
|
44
|
+
|
45
|
+
def overwrite_rspec
|
46
|
+
template 'rspec/.rspec', '.rspec'
|
47
|
+
template 'rspec/rails_helper.rb', 'spec/rails_helper.rb'
|
48
|
+
template 'rspec/spec_helper.rb', 'spec/spec_helper.rb'
|
49
|
+
end
|
50
|
+
|
51
|
+
def thank_you
|
52
|
+
puts "Thanks for using EffectiveTestBot"
|
53
|
+
puts "Run tests by typing 'guard' (and then <ENTER>) or 'rspec'"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV['RAILS_ENV'] ||= 'test'
|
3
|
+
require 'spec_helper'
|
4
|
+
require File.expand_path('../../config/environment', __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
|
7
|
+
Capybara.javascript_driver = :webkit
|
8
|
+
|
9
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
10
|
+
|
11
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
12
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
13
|
+
# run as spec files by default. This means that files in spec/support that end
|
14
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
15
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
16
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
17
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
18
|
+
#
|
19
|
+
# The following line is provided for convenience purposes. It has the downside
|
20
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
21
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
22
|
+
# require only the support files necessary.
|
23
|
+
#
|
24
|
+
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
25
|
+
|
26
|
+
# Checks for pending migrations before tests are run.
|
27
|
+
# If you are not using ActiveRecord, you can remove this line.
|
28
|
+
ActiveRecord::Migration.maintain_test_schema!
|
29
|
+
|
30
|
+
RSpec.configure do |config|
|
31
|
+
config.include Capybara::DSL
|
32
|
+
|
33
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
34
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
35
|
+
|
36
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
37
|
+
# examples within a transaction, remove the following line or assign false
|
38
|
+
# instead of true.
|
39
|
+
config.use_transactional_fixtures = true
|
40
|
+
|
41
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
42
|
+
# based on their file location, for example enabling you to call `get` and
|
43
|
+
# `post` in specs under `spec/controllers`.
|
44
|
+
#
|
45
|
+
# You can disable this behaviour by removing the line below, and instead
|
46
|
+
# explicitly tag your specs with their type, e.g.:
|
47
|
+
#
|
48
|
+
# RSpec.describe UsersController, :type => :controller do
|
49
|
+
# # ...
|
50
|
+
# end
|
51
|
+
#
|
52
|
+
# The different available types are documented in the features, such as in
|
53
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
54
|
+
config.infer_spec_type_from_file_location!
|
55
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
|
20
|
+
RSpec.configure do |config|
|
21
|
+
config.files_or_directories_to_run = ['spec', '../effective_test_bot/spec']
|
22
|
+
|
23
|
+
# rspec-expectations config goes here. You can use an alternate
|
24
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
25
|
+
# assertions if you prefer.
|
26
|
+
config.expect_with :rspec do |expectations|
|
27
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
28
|
+
# and `failure_message` of custom matchers include text for helper methods
|
29
|
+
# defined using `chain`, e.g.:
|
30
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
31
|
+
# # => "be bigger than 2 and smaller than 4"
|
32
|
+
# ...rather than:
|
33
|
+
# # => "be bigger than 2"
|
34
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
35
|
+
end
|
36
|
+
|
37
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
38
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
39
|
+
config.mock_with :rspec do |mocks|
|
40
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
41
|
+
# a real object. This is generally recommended, and will default to
|
42
|
+
# `true` in RSpec 4.
|
43
|
+
mocks.verify_partial_doubles = true
|
44
|
+
end
|
45
|
+
|
46
|
+
# The settings below are suggested to provide a good initial experience
|
47
|
+
# with RSpec, but feel free to customize to your heart's content.
|
48
|
+
=begin
|
49
|
+
# These two settings work together to allow you to limit a spec run
|
50
|
+
# to individual examples or groups you care about by tagging them with
|
51
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
52
|
+
# get run.
|
53
|
+
config.filter_run :focus
|
54
|
+
config.run_all_when_everything_filtered = true
|
55
|
+
|
56
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
57
|
+
# recommended. For more details, see:
|
58
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
59
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
60
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
61
|
+
config.disable_monkey_patching!
|
62
|
+
|
63
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
64
|
+
# file, and it's useful to allow more verbose output when running an
|
65
|
+
# individual spec file.
|
66
|
+
if config.files_to_run.one?
|
67
|
+
# Use the documentation formatter for detailed output,
|
68
|
+
# unless a formatter has already been configured
|
69
|
+
# (e.g. via a command-line flag).
|
70
|
+
config.default_formatter = 'doc'
|
71
|
+
end
|
72
|
+
|
73
|
+
# Print the 10 slowest examples and example groups at the
|
74
|
+
# end of the spec run, to help surface which specs are running
|
75
|
+
# particularly slow.
|
76
|
+
config.profile_examples = 10
|
77
|
+
|
78
|
+
# Run specs in random order to surface order dependencies. If you find an
|
79
|
+
# order dependency and want to debug it, you can fix the order by providing
|
80
|
+
# the seed, which is printed after each run.
|
81
|
+
# --seed 1234
|
82
|
+
config.order = :random
|
83
|
+
|
84
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
85
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
86
|
+
# test failures related to randomization by passing the same `--seed` value
|
87
|
+
# as the one that triggered the failure.
|
88
|
+
Kernel.srand config.seed
|
89
|
+
=end
|
90
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
if defined?(Devise) && defined?(User)
|
4
|
+
|
5
|
+
feature 'Devise Sign In' do
|
6
|
+
let(:user) do
|
7
|
+
User.new(email: "user_#{Time.now.to_i}@example.com", password: '1234567890').tap { |u| u.save(validate: false) }
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'allows a valid sign in' do
|
11
|
+
visit new_user_session_path
|
12
|
+
|
13
|
+
within('form#new_user') do
|
14
|
+
fill_in 'user_email', with: user.email
|
15
|
+
fill_in 'user_password', with: user.password
|
16
|
+
|
17
|
+
find('input[type=submit]').click
|
18
|
+
end
|
19
|
+
|
20
|
+
expect(page.status_code).to eq 200
|
21
|
+
expect(page).to have_content I18n.t('devise.sessions.signed_in')
|
22
|
+
|
23
|
+
existing_user = User.find_by_email(user.email)
|
24
|
+
expect(existing_user.sign_in_count).to eq 1
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'prevents sign in when provided an invalid password' do
|
28
|
+
visit new_user_session_path
|
29
|
+
|
30
|
+
within('form#new_user') do
|
31
|
+
fill_in 'user_email', with: user.email
|
32
|
+
fill_in 'user_password', with: 'invalid_password'
|
33
|
+
|
34
|
+
find('input[type=submit]').click
|
35
|
+
end
|
36
|
+
|
37
|
+
expect(page.status_code).to eq 200
|
38
|
+
expect(page).to have_content I18n.t('devise.failure.invalid', authentication_keys: Devise.authentication_keys.join(', '))
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
end # /defined?(Devise)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
if defined?(Devise) && defined?(User)
|
4
|
+
|
5
|
+
feature 'Devise Sign Up' do
|
6
|
+
let(:email) { "user_#{Time.now.to_i}@example.com" }
|
7
|
+
let(:password) { "pass_#{Time.now.to_i}" }
|
8
|
+
|
9
|
+
it 'allows a valid sign up' do
|
10
|
+
visit new_user_registration_path
|
11
|
+
|
12
|
+
within('form#new_user') do
|
13
|
+
fill_in 'user_email', with: email
|
14
|
+
fill_in 'user_password', with: password
|
15
|
+
fill_in 'user_password_confirmation', with: password
|
16
|
+
|
17
|
+
find('input[type=submit]').click
|
18
|
+
end
|
19
|
+
|
20
|
+
expect(page.status_code).to eq 200
|
21
|
+
expect(page).to have_content I18n.t('devise.registrations.signed_up')
|
22
|
+
|
23
|
+
user = User.find_by_email(email)
|
24
|
+
expect(user.present?).to eq true
|
25
|
+
expect(user.valid?).to eq true
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end # /defined?(Devise)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
if defined?(Devise) && defined?(User)
|
4
|
+
|
5
|
+
describe User, type: :model do
|
6
|
+
let(:user) { User.new() }
|
7
|
+
|
8
|
+
it { should validate_presence_of(:email) }
|
9
|
+
it { should validate_presence_of(:password) }
|
10
|
+
it { should validate_presence_of(:encrypted_password) }
|
11
|
+
|
12
|
+
it 'fails validation when password and password_confirmation are different' do
|
13
|
+
user.password = '123456789'
|
14
|
+
user.password_confirmation = '987654321'
|
15
|
+
expect(user.valid?).to eq false
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end # /defined?(Devise) && defined?(User)
|
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: effective_test_bot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Code and Effect
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: capybara-webkit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: shoulda-matchers
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-livereload
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: A shared library of rails model & capybara-based feature tests that should
|
126
|
+
pass in every Rails application.
|
127
|
+
email:
|
128
|
+
- info@codeandeffect.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- MIT-LICENSE
|
134
|
+
- README.md
|
135
|
+
- Rakefile
|
136
|
+
- lib/effective_test_bot.rb
|
137
|
+
- lib/effective_test_bot/engine.rb
|
138
|
+
- lib/effective_test_bot/version.rb
|
139
|
+
- lib/generators/effective_test_bot/install_generator.rb
|
140
|
+
- lib/generators/templates/effective_test_bot.rb
|
141
|
+
- lib/generators/templates/rspec/rails_helper.rb
|
142
|
+
- lib/generators/templates/rspec/spec_helper.rb
|
143
|
+
- spec/features/devise/sign_in_spec.rb
|
144
|
+
- spec/features/devise/sign_up_spec.rb
|
145
|
+
- spec/features/home_page_spec.rb
|
146
|
+
- spec/models/user_spec.rb
|
147
|
+
homepage: https://github.com/code-and-effect/effective_test_bot
|
148
|
+
licenses:
|
149
|
+
- MIT
|
150
|
+
metadata: {}
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
requirements: []
|
166
|
+
rubyforge_project:
|
167
|
+
rubygems_version: 2.4.3
|
168
|
+
signing_key:
|
169
|
+
specification_version: 4
|
170
|
+
summary: A shared library of rails model & capybara-based feature tests that should
|
171
|
+
pass in every Rails application.
|
172
|
+
test_files:
|
173
|
+
- spec/features/devise/sign_in_spec.rb
|
174
|
+
- spec/features/devise/sign_up_spec.rb
|
175
|
+
- spec/features/home_page_spec.rb
|
176
|
+
- spec/models/user_spec.rb
|