Skip to content

Commit

Permalink
Rails model, controller, and route tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reconstructions committed Dec 7, 2017
1 parent 8ca0a4b commit 79f77c9
Show file tree
Hide file tree
Showing 10 changed files with 547 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ Metrics/MethodLength:

Metrics/BlockLength:
Max: 105
ExcludedMethods: [describe]

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/Documentation:
Enabled: false

Style/BracesAroundHashParameters:
Exclude:
- spec/controllers/**/*
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ group :development, :test do
end

group :test do
gem "airborne"
gem "api_matchers"
gem "capybara", "2.13.0"
gem "capybara-screenshot"
gem "capybara-webkit", "1.14.0"
Expand All @@ -101,6 +103,7 @@ group :test do
gem "generator_spec"
gem "launchy"
gem "poltergeist"
gem "rails-controller-testing"
gem "rails_best_practices"
gem "rspec-rails", "3.6.1"
gem "rspec-retry"
Expand Down
33 changes: 33 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ GEM
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
airborne (0.2.13)
activesupport
rack
rack-test (~> 0.6, >= 0.6.2)
rest-client (>= 1.7.3, < 3.0)
rspec (~> 3.1)
api_matchers (0.6.2)
activesupport (>= 3.2.5)
nokogiri (>= 1.5.2)
rspec (>= 3.1)
archive-zip (0.7.0)
io-like (~> 0.3.0)
arel (8.0.0)
Expand Down Expand Up @@ -98,6 +108,8 @@ GEM
debug_inspector (0.0.3)
diff-lcs (1.3)
docile (1.1.5)
domain_name (0.5.20170404)
unf (>= 0.0.5, < 1.0.0)
erubi (1.7.0)
erubis (2.7.0)
execjs (2.7.0)
Expand All @@ -114,6 +126,8 @@ GEM
railties (>= 3.0.0)
globalid (0.4.1)
activesupport (>= 4.2.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
interception (0.5)
Expand Down Expand Up @@ -144,6 +158,7 @@ GEM
libv8 (~> 5.9)
minitest (5.10.3)
multi_json (1.12.2)
netrc (0.11.0)
nio4r (2.1.0)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
Expand Down Expand Up @@ -192,6 +207,10 @@ GEM
bundler (>= 1.3.0)
railties (= 5.1.4)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.2)
actionpack (~> 5.x, >= 5.0.1)
actionview (~> 5.x, >= 5.0.1)
activesupport (~> 5.x)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
Expand Down Expand Up @@ -226,6 +245,14 @@ GEM
rainbow (~> 2.2)
redis (3.3.3)
require_all (1.4.0)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-core (3.6.0)
rspec-support (~> 3.6.0)
rspec-expectations (3.6.0)
Expand Down Expand Up @@ -306,6 +333,9 @@ GEM
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.4)
unicode-display_width (1.3.0)
web-console (3.5.1)
actionview (>= 5.0)
Expand All @@ -327,6 +357,8 @@ PLATFORMS
ruby

DEPENDENCIES
airborne
api_matchers
autoprefixer-rails
awesome_print
brakeman
Expand Down Expand Up @@ -355,6 +387,7 @@ DEPENDENCIES
pry-stack_explorer
puma
rails (~> 5)
rails-controller-testing
rails-html-sanitizer
rails_best_practices
rainbow
Expand Down
Loading

0 comments on commit 79f77c9

Please sign in to comment.