spec_snap 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8f82e9ec502dea9d9a988afb8f527889aaaea7dc
4
+ data.tar.gz: ac6063431babac47ba0bbf1e9857da097301cb1c
5
+ SHA512:
6
+ metadata.gz: 624ac8fe4698b0b91f105823bd10fcb3cfaff19cc22258930cdb2a83146e9f40f5127df10d57974c3ee4ff0e1fc0b1b0b76f3d7fbb1ba44f8230ed53a83b15de
7
+ data.tar.gz: 2eb3ab2be6f83aa5f0239d6975dd739b157142ac3c53a139847f719ca24c600010968584e0e4d9f2aa2d346975d4ebf2cf24b1d4a27b5591d6c3a028bf0d99e0
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.0
5
+ before_install: gem install bundler -v 1.14.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at adam.whittingham@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Adam Whittingham
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # SpecSnap
2
+
3
+ Handy starter config for RSpec helpers.
4
+
5
+ Many of us end up with a toolset we like to use during our builds and end up with a huge `spec_helper.rb` file that gets copied from project to project.
6
+ To make this a little more controlled and quicker to get started with, we at [Developer Mountain](http://devmountain.co.uk) are collecting our most frequently used configurations into this gem to share them and see if they are useful to other people.
7
+
8
+ This gem provides a number of files which can be required in your `spec_helper.rb` or `rails_helper.rb` files to quickly get a reasonable config for integrating a tool or helper in rspec.
9
+ A good example is `database_cleaner`, a popular way of rolling back changes to your DB during tests. A common configuration is provided, so you can simply add `require 'spec_snap/database_cleaner'` to your spec_helper and be on your way.
10
+
11
+ If you find SpecSnap useful, you might also enjoy [Rake-n-Bake](https://rubygems.org/gems/rake-n-bake), where we make our rake build configs modular and reusable in a similar way.
12
+
13
+ ## Installation
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```ruby
18
+ gem 'spec_snap'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install spec_snap
28
+
29
+
30
+ ## Usage
31
+
32
+ 1. Look in `lib/spec_snap` for any tools you want to drop in to your project quickly.
33
+ 2. Install this gem and any gems required for the tool (ie. add the [Database Cleaner]() gem to your Gemfile)
34
+ 2. In your `spec_helper.rb` or `rails_helper.rb`, require the config file. For example: `require 'spec_snap/database_cleaner'`
35
+ 3. Enjoy having your tooling setup that little bit quicker and more consistently.
36
+
37
+ ## Development
38
+
39
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+
41
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dvmtn/spec_snap. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
46
+
47
+
48
+ ## License
49
+
50
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
51
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "spec_snap"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rack_session_access/capybara'
4
+ require 'capybara/poltergeist'
5
+
6
+ Capybara.server_port = 3443
7
+ Capybara.app_host = 'https://localhost:3443'
8
+ Capybara.exact = true
9
+
10
+ Capybara.register_driver :poltergeist do |app|
11
+ Capybara::Poltergeist::Driver.new(app, phantomjs_options: ['--local-to-remote-url-access=yes'])
12
+ end
13
+
14
+ Capybara.register_driver :rack_test do |app|
15
+ Capybara::RackTest::Driver.new(app, headers: { 'HTTP_USER_AGENT' => 'Capybara' })
16
+ end
17
+
18
+ Capybara.default_driver = :rack_test
19
+ Capybara.javascript_driver = :poltergeist
20
+
21
+ module CapybaraHelper
22
+ # By default, capybara will ignore all hidden fields. This lets us disable that temporarily.
23
+ #
24
+ # Example
25
+ #
26
+ # include_hidden_fields do
27
+ # attach_file('hidden-input', 'spec/fixtures/files/file.jpg')
28
+ # end
29
+ #
30
+ def include_hidden_elemements
31
+ Capybara.ignore_hidden_elements = false
32
+ yield
33
+ Capybara.ignore_hidden_elements = true
34
+ end
35
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ControllerHelper
4
+
5
+ def sign_in(user)
6
+ if user.nil?
7
+ not_signed_in
8
+ else
9
+ allow(request.env['warden']).to receive(:authenticate!).and_return(user)
10
+ allow(controller).to receive(:current_user).and_return(user)
11
+ end
12
+ end
13
+
14
+ def not_signed_in
15
+ allow(request.env['warden']).to receive(:authenticate!).and_throw(:warden, {:scope => :user})
16
+ allow(controller).to receive(:current_user).and_return(nil)
17
+ end
18
+
19
+ RSpec.configure do |config|
20
+ config.include self, type: :controller
21
+ end
22
+
23
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'database_cleaner'
4
+
5
+ RSpec.configure do |config|
6
+ config.before(:suite) do
7
+ DatabaseCleaner.clean_with :truncation
8
+ end
9
+
10
+ config.before(:each) do
11
+ DatabaseCleaner.strategy = :transaction
12
+ end
13
+
14
+ config.before(:each, js: true) do
15
+ DatabaseCleaner.strategy = :truncation
16
+ end
17
+
18
+ config.before(:each) do
19
+ DatabaseCleaner.start
20
+ end
21
+
22
+ config.after(:each) do
23
+ DatabaseCleaner.clean
24
+ end
25
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |config|
4
+ config.include Devise::Test::ControllerHelpers, type: :controller
5
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'factory_girl_rails'
4
+
5
+ module FactoryGirl
6
+ module Syntax
7
+ module Methods
8
+ alias create_large_list create_list
9
+
10
+ def create_list(name, amount, *traits_and_overrides, &block)
11
+ unless small_amount_or_special_build?(amount)
12
+ raise ArgumentError, "You asked to create #{amount} records. For the sake of test speed (and sanity), don't do this."
13
+ end
14
+
15
+ create_large_list(name, amount, *traits_and_overrides, &block)
16
+ end
17
+
18
+ private def small_amount_or_special_build? amount
19
+ amount < 3 || ENV['NIGHTLY'] || ENV['CI']
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ RSpec.configure do |config|
26
+ config.include FactoryGirl::Syntax::Methods
27
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FeatureLoginHelper
4
+
5
+ class Login
6
+ include Warden::Test::Helpers
7
+ end
8
+
9
+ def logged_in_as(user)
10
+ Login.new.login_as user, scope: :user, run_callbacks: false
11
+ end
12
+
13
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |config|
4
+ config.around(:example, :pagination_set_to_one) do |test|
5
+ original_per_page = Kaminari.config.default_per_page
6
+ Kaminari.config.default_per_page = 1
7
+ test.run
8
+ Kaminari.config.default_per_page = original_per_page
9
+ end
10
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tableware'
4
+ require 'pundit'
5
+
6
+ def test_policy_table permission_matrix, klass = nil, policy_object_defined: false
7
+ Tableware.hashes(permission_matrix).each do |perms|
8
+ action = "#{perms[:action]}?".to_sym
9
+ roles = User::ROLES.map(&:to_sym)
10
+
11
+ permissions action do
12
+ roles.each do |role|
13
+ allowed = perms[role] == 'yes'
14
+ user = User.new(role: role)
15
+
16
+ unless policy_object_defined
17
+ let(:policy_object) { klass.nil? ? nil : klass.new }
18
+ end
19
+
20
+ it "#{allowed ? 'allows' : 'denies'} access to #{role} users" do
21
+ if allowed
22
+ expect(described_class).to permit(user, policy_object)
23
+ else
24
+ expect(described_class).to_not permit(user, policy_object)
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RequiredSeeds
4
+ def self.populate(seeds)
5
+ Array(seeds).each { |seed| load Rails.root.join('db', 'seeds', "#{seed}.rb") }
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'fuubar'
4
+
5
+ RSpec.configure do |config|
6
+ config.default_formatter = 'Fuubar'
7
+ config.default_formatter = 'doc' if config.files_to_run.one?
8
+ config.default_formatter = 'RspecJunitFormatter' if ENV['CI']
9
+ config.example_status_persistence_file_path = 'log/rspec-run.log'
10
+
11
+ config.fuubar_progress_bar_options = {
12
+ format: ' %c/%C |%w%i| %e ',
13
+ progress_mark: '█',
14
+ }
15
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'simplecov'
4
+
5
+ if ENV['CIRCLE_ARTIFACTS']
6
+ dir = File.join(ENV['CIRCLE_ARTIFACTS'], 'coverage')
7
+ SimpleCov.coverage_dir(dir)
8
+ else
9
+ SimpleCov.coverage_dir 'log/coverage/spec'
10
+ end
11
+
12
+ SimpleCov.minimum_coverage ENV['COVERAGE_PERCENT']
13
+ SimpleCov.refuse_coverage_drop
14
+
15
+ unless ENV['NO_COVERAGE']
16
+ SimpleCov.start 'rails' do
17
+ add_group 'Collaborators', 'app/collaborators'
18
+ add_group 'Creators', 'app/creators'
19
+ add_group 'Policies', 'app/policies'
20
+ add_group 'Presenters', 'app/presenters'
21
+ add_group 'Queriers', 'app/queriers'
22
+ add_group 'Report Generators', 'app/report_generators'
23
+ add_group 'Services', 'app/services'
24
+ add_group 'Workers', 'app/workers'
25
+
26
+ add_filter 'vendor/'
27
+ end
28
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support'
4
+ require 'test-prof'
5
+
6
+ TestProf.configure do |config|
7
+ config.output_dir = 'tmp/test_prof'
8
+ config.timestamps = true
9
+ config.color = true
10
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'webmock/rspec'
4
+ require 'vcr'
5
+
6
+ VCR.configure do |c|
7
+ c.cassette_library_dir = 'spec/cassettes'
8
+ c.hook_into :webmock
9
+ c.configure_rspec_metadata!
10
+ c.ignore_localhost = true
11
+ end
@@ -0,0 +1,3 @@
1
+ module SpecSnap
2
+ VERSION = "0.1.0"
3
+ end
data/lib/spec_snap.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "spec_snap/version"
2
+
3
+ module SpecSnap
4
+ # Your code goes here...
5
+ end
data/spec_snap.gemspec ADDED
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'spec_snap/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "spec_snap"
8
+ spec.version = SpecSnap::VERSION
9
+ spec.authors = ["Adam Whittingham"]
10
+ spec.email = ["adam@devmountain.co.uk", "adam.whittingham@gmail.com"]
11
+
12
+ spec.summary = %q{RSpec helpers ready configured to make life easier.}
13
+ spec.homepage = "https://github.com/dvmtn/spec_snap"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.14"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
26
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spec_snap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Adam Whittingham
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - adam@devmountain.co.uk
58
+ - adam.whittingham@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - lib/spec_snap.rb
74
+ - lib/spec_snap/capybara.rb
75
+ - lib/spec_snap/controller_helper.rb
76
+ - lib/spec_snap/database_cleaner.rb
77
+ - lib/spec_snap/devise_controller.rb
78
+ - lib/spec_snap/factory_girl.rb
79
+ - lib/spec_snap/feature_login_helper.rb
80
+ - lib/spec_snap/kanimari_helper.rb
81
+ - lib/spec_snap/policy_helper.rb
82
+ - lib/spec_snap/required_seeds.rb
83
+ - lib/spec_snap/rspec_output.rb
84
+ - lib/spec_snap/simplecov.rb
85
+ - lib/spec_snap/test_prof.rb
86
+ - lib/spec_snap/vcr.rb
87
+ - lib/spec_snap/version.rb
88
+ - spec_snap.gemspec
89
+ homepage: https://github.com/dvmtn/spec_snap
90
+ licenses:
91
+ - MIT
92
+ metadata: {}
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ requirements: []
108
+ rubyforge_project:
109
+ rubygems_version: 2.5.1
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: RSpec helpers ready configured to make life easier.
113
+ test_files: []