customer_vault 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +22 -0
  5. data/app/assets/javascripts/customer_vault/application.js +13 -0
  6. data/app/assets/javascripts/customer_vault/corporations.js +2 -0
  7. data/app/assets/javascripts/customer_vault/people.js +2 -0
  8. data/app/assets/stylesheets/customer_vault/application.css +13 -0
  9. data/app/assets/stylesheets/customer_vault/corporations.css +4 -0
  10. data/app/assets/stylesheets/customer_vault/people.css +4 -0
  11. data/app/assets/stylesheets/scaffold.css +56 -0
  12. data/app/controllers/customer_vault/application_controller.rb +4 -0
  13. data/app/controllers/customer_vault/corporations_controller.rb +62 -0
  14. data/app/controllers/customer_vault/people_controller.rb +62 -0
  15. data/app/helpers/customer_vault/application_helper.rb +4 -0
  16. data/app/helpers/customer_vault/corporations_helper.rb +4 -0
  17. data/app/helpers/customer_vault/people_helper.rb +4 -0
  18. data/app/models/customer_vault/corporation.rb +5 -0
  19. data/app/models/customer_vault/person.rb +6 -0
  20. data/app/views/customer_vault/corporations/_form.html.slim +21 -0
  21. data/app/views/customer_vault/corporations/edit.html.slim +8 -0
  22. data/app/views/customer_vault/corporations/index.html.slim +27 -0
  23. data/app/views/customer_vault/corporations/new.html.slim +5 -0
  24. data/app/views/customer_vault/corporations/show.html.slim +18 -0
  25. data/app/views/customer_vault/people/_form.html.slim +39 -0
  26. data/app/views/customer_vault/people/edit.html.slim +8 -0
  27. data/app/views/customer_vault/people/index.html.slim +39 -0
  28. data/app/views/customer_vault/people/new.html.slim +5 -0
  29. data/app/views/customer_vault/people/show.html.slim +36 -0
  30. data/app/views/layouts/customer_vault/application.html.erb +14 -0
  31. data/config/routes.rb +6 -0
  32. data/db/migrate/20141006095617_create_customer_vault_people.rb +18 -0
  33. data/db/migrate/20141010095816_create_customer_vault_corporations.rb +12 -0
  34. data/lib/customer_vault.rb +4 -0
  35. data/lib/customer_vault/engine.rb +11 -0
  36. data/lib/customer_vault/version.rb +3 -0
  37. data/lib/tasks/customer_vault_tasks.rake +4 -0
  38. data/spec/controllers/customer_vault/corporations_controller_spec.rb +163 -0
  39. data/spec/controllers/customer_vault/people_controller_spec.rb +163 -0
  40. data/spec/dummy/README.rdoc +28 -0
  41. data/spec/dummy/Rakefile +6 -0
  42. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  43. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  44. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  45. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  46. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  47. data/spec/dummy/bin/bundle +3 -0
  48. data/spec/dummy/bin/rails +4 -0
  49. data/spec/dummy/bin/rake +4 -0
  50. data/spec/dummy/config.ru +4 -0
  51. data/spec/dummy/config/application.rb +23 -0
  52. data/spec/dummy/config/boot.rb +5 -0
  53. data/spec/dummy/config/database.yml +25 -0
  54. data/spec/dummy/config/environment.rb +5 -0
  55. data/spec/dummy/config/environments/development.rb +32 -0
  56. data/spec/dummy/config/environments/production.rb +80 -0
  57. data/spec/dummy/config/environments/test.rb +39 -0
  58. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  59. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  60. data/spec/dummy/config/initializers/inflections.rb +16 -0
  61. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  62. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  63. data/spec/dummy/config/initializers/session_store.rb +3 -0
  64. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  65. data/spec/dummy/config/locales/en.yml +23 -0
  66. data/spec/dummy/config/routes.rb +4 -0
  67. data/spec/dummy/db/development.sqlite3 +0 -0
  68. data/spec/dummy/db/schema.rb +40 -0
  69. data/spec/dummy/db/test.sqlite3 +0 -0
  70. data/spec/dummy/log/development.log +652 -0
  71. data/spec/dummy/log/test.log +5110 -0
  72. data/spec/dummy/public/404.html +58 -0
  73. data/spec/dummy/public/422.html +58 -0
  74. data/spec/dummy/public/500.html +57 -0
  75. data/spec/dummy/public/favicon.ico +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/2b9d45522b3d1f3105e1c33e325dc6de +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/34d14962fde7e4fd6e2671844bcfaa78 +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/47170c4182a8457e8d53507ea76fa76b +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/78ef508640527d1bb135c1077223fb7c +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/a1b854a09ea96f64f07c9d3692d9cd9b +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/a5c73696137ab9dbdda376c8d7ffa3b9 +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/ad1a12f0fbac31c992fbc716a5e504bb +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/b10f86698e41bfdaafc9fb6bbf5bfbd9 +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/c9db74506cdab0aec9f855c956f47726 +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/db5f1ec4fd27d454a95b2824fff064d1 +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/e5782a71fc01b88e6ac0c1c963bf7e3e +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/f516186931f15a3e5c86af1b1632d256 +0 -0
  88. data/spec/factories/customer_vault_corporations.rb +10 -0
  89. data/spec/factories/customer_vault_people.rb +16 -0
  90. data/spec/helpers/customer_vault/corporations_helper_spec.rb +16 -0
  91. data/spec/helpers/customer_vault/people_helper_spec.rb +16 -0
  92. data/spec/models/customer_vault/corporation_spec.rb +7 -0
  93. data/spec/models/customer_vault/person_spec.rb +14 -0
  94. data/spec/rails_helper.rb +54 -0
  95. data/spec/routing/customer_vault/corporations_routing_spec.rb +37 -0
  96. data/spec/routing/customer_vault/people_routing_spec.rb +37 -0
  97. data/spec/spec_helper.rb +86 -0
  98. data/spec/views/customer_vault/corporations/edit.html.slim_spec.rb +29 -0
  99. data/spec/views/customer_vault/corporations/index.html.slim_spec.rb +29 -0
  100. data/spec/views/customer_vault/corporations/new.html.slim_spec.rb +28 -0
  101. data/spec/views/customer_vault/corporations/show.html.slim_spec.rb +21 -0
  102. data/spec/views/customer_vault/people/edit.html.slim_spec.rb +47 -0
  103. data/spec/views/customer_vault/people/index.html.slim_spec.rb +47 -0
  104. data/spec/views/customer_vault/people/new.html.slim_spec.rb +47 -0
  105. data/spec/views/customer_vault/people/show.html.slim_spec.rb +34 -0
  106. metadata +300 -0
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,10 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :customer_vault_corporation, :class => 'CustomerVault::Corporation' do
5
+ name "MyString"
6
+ email "MyString"
7
+ phone "MyString"
8
+ fax "MyString"
9
+ end
10
+ end
@@ -0,0 +1,16 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :customer_vault_person, :class => 'CustomerVault::Person' do
5
+ first_name "MyString"
6
+ last_name "MyString"
7
+ email "MyString"
8
+ title "MyString"
9
+ twitter "MyString"
10
+ www "MyString"
11
+ context "MyText"
12
+ phone "MyString"
13
+ fax "MyString"
14
+ mobile "MyString"
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require 'rails_helper'
2
+
3
+ # Specs in this file have access to a helper object that includes
4
+ # the CorporationsHelper. For example:
5
+ #
6
+ # describe CorporationsHelper do
7
+ # describe "string concat" do
8
+ # it "concats two strings with spaces" do
9
+ # expect(helper.concat_strings("this","that")).to eq("this that")
10
+ # end
11
+ # end
12
+ # end
13
+ module CustomerVault
14
+ RSpec.describe CorporationsHelper, :type => :helper do
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require 'rails_helper'
2
+
3
+ # Specs in this file have access to a helper object that includes
4
+ # the PeopleHelper. For example:
5
+ #
6
+ # describe PeopleHelper do
7
+ # describe "string concat" do
8
+ # it "concats two strings with spaces" do
9
+ # expect(helper.concat_strings("this","that")).to eq("this that")
10
+ # end
11
+ # end
12
+ # end
13
+ module CustomerVault
14
+ RSpec.describe PeopleHelper, :type => :helper do
15
+ end
16
+ end
@@ -0,0 +1,7 @@
1
+ require 'rails_helper'
2
+
3
+ module CustomerVault
4
+ RSpec.describe Corporation, :type => :model do
5
+ it { should validate_presence_of :name }
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ module CustomerVault
4
+ RSpec.describe Person, :type => :model do
5
+ it 'should have a valid factory' do
6
+ person = FactoryGirl.build(:customer_vault_person)
7
+ expect(person).to be_valid
8
+ end
9
+
10
+ it { should validate_presence_of :first_name }
11
+ it { should validate_presence_of :last_name }
12
+
13
+ end
14
+ end
@@ -0,0 +1,54 @@
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("../dummy/config/environment", __FILE__)
5
+ require 'rspec/rails'
6
+
7
+ require 'factory_girl_rails'
8
+ require 'slim'
9
+
10
+ # Add additional requires below this line. Rails is not loaded until this point!
11
+
12
+ # Requires supporting ruby files with custom matchers and macros, etc, in
13
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
14
+ # run as spec files by default. This means that files in spec/support that end
15
+ # in _spec.rb will both be required and run as specs, causing the specs to be
16
+ # run twice. It is recommended that you do not name files matching this glob to
17
+ # end with _spec.rb. You can configure this pattern with the --pattern
18
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
19
+ #
20
+ # The following line is provided for convenience purposes. It has the downside
21
+ # of increasing the boot-up time by auto-requiring all files in the support
22
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
23
+ # require only the support files necessary.
24
+ #
25
+ # Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
26
+
27
+ # Checks for pending migrations before tests are run.
28
+ # If you are not using ActiveRecord, you can remove this line.
29
+ ActiveRecord::Migration.check_pending!
30
+
31
+ RSpec.configure do |config|
32
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
33
+ # config.fixture_path = "#{::Rails.root}/spec/fixtures"
34
+
35
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
36
+ # examples within a transaction, remove the following line or assign false
37
+ # instead of true.
38
+ config.use_transactional_fixtures = true
39
+
40
+ # RSpec Rails can automatically mix in different behaviours to your tests
41
+ # based on their file location, for example enabling you to call `get` and
42
+ # `post` in specs under `spec/controllers`.
43
+ #
44
+ # You can disable this behaviour by removing the line below, and instead
45
+ # explicitly tag your specs with their type, e.g.:
46
+ #
47
+ # RSpec.describe UsersController, :type => :controller do
48
+ # # ...
49
+ # end
50
+ #
51
+ # The different available types are documented in the features, such as in
52
+ # https://relishapp.com/rspec/rspec-rails/docs
53
+ config.infer_spec_type_from_file_location!
54
+ end
@@ -0,0 +1,37 @@
1
+ require "rails_helper"
2
+
3
+ module CustomerVault
4
+ RSpec.describe CorporationsController, :type => :routing do
5
+ routes { CustomerVault::Engine.routes }
6
+ describe "routing" do
7
+ it "routes to #index" do
8
+ expect(:get => "/corporations").to route_to("customer_vault/corporations#index")
9
+ end
10
+
11
+ it "routes to #new" do
12
+ expect(:get => "/corporations/new").to route_to("customer_vault/corporations#new")
13
+ end
14
+
15
+ it "routes to #show" do
16
+ expect(:get => "/corporations/1").to route_to("customer_vault/corporations#show", :id => "1")
17
+ end
18
+
19
+ it "routes to #edit" do
20
+ expect(:get => "/corporations/1/edit").to route_to("customer_vault/corporations#edit", :id => "1")
21
+ end
22
+
23
+ it "routes to #create" do
24
+ expect(:post => "/corporations").to route_to("customer_vault/corporations#create")
25
+ end
26
+
27
+ it "routes to #update" do
28
+ expect(:put => "/corporations/1").to route_to("customer_vault/corporations#update", :id => "1")
29
+ end
30
+
31
+ it "routes to #destroy" do
32
+ expect(:delete => "/corporations/1").to route_to("customer_vault/corporations#destroy", :id => "1")
33
+ end
34
+
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,37 @@
1
+ require "rails_helper"
2
+
3
+ module CustomerVault
4
+ RSpec.describe PeopleController, :type => :routing do
5
+ describe "routing" do
6
+ routes { CustomerVault::Engine.routes }
7
+ it "routes to #index" do
8
+ expect(:get => "/people").to route_to("customer_vault/people#index")
9
+ end
10
+
11
+ it "routes to #new" do
12
+ expect(:get => "/people/new").to route_to("customer_vault/people#new")
13
+ end
14
+
15
+ it "routes to #show" do
16
+ expect(:get => "/people/1").to route_to("customer_vault/people#show", :id => "1")
17
+ end
18
+
19
+ it "routes to #edit" do
20
+ expect(:get => "/people/1/edit").to route_to("customer_vault/people#edit", :id => "1")
21
+ end
22
+
23
+ it "routes to #create" do
24
+ expect(:post => "/people").to route_to("customer_vault/people#create")
25
+ end
26
+
27
+ it "routes to #update" do
28
+ expect(:put => "/people/1").to route_to("customer_vault/people#update", :id => "1")
29
+ end
30
+
31
+ it "routes to #destroy" do
32
+ expect(:delete => "/people/1").to route_to("customer_vault/people#destroy", :id => "1")
33
+ end
34
+
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,86 @@
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 this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+
18
+ RSpec.configure do |config|
19
+ # rspec-expectations config goes here. You can use an alternate
20
+ # assertion/expectation library such as wrong or the stdlib/minitest
21
+ # assertions if you prefer.
22
+ config.expect_with :rspec do |expectations|
23
+ # This option will default to `true` in RSpec 4. It makes the `description`
24
+ # and `failure_message` of custom matchers include text for helper methods
25
+ # defined using `chain`, e.g.:
26
+ # be_bigger_than(2).and_smaller_than(4).description
27
+ # # => "be bigger than 2 and smaller than 4"
28
+ # ...rather than:
29
+ # # => "be bigger than 2"
30
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
+ end
32
+
33
+ # rspec-mocks config goes here. You can use an alternate test double
34
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
35
+ config.mock_with :rspec do |mocks|
36
+ # Prevents you from mocking or stubbing a method that does not exist on
37
+ # a real object. This is generally recommended, and will default to
38
+ # `true` in RSpec 4.
39
+ mocks.verify_partial_doubles = true
40
+ end
41
+
42
+ # The settings below are suggested to provide a good initial experience
43
+ # with RSpec, but feel free to customize to your heart's content.
44
+ =begin
45
+ # These two settings work together to allow you to limit a spec run
46
+ # to individual examples or groups you care about by tagging them with
47
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
48
+ # get run.
49
+ config.filter_run :focus
50
+ config.run_all_when_everything_filtered = true
51
+
52
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
53
+ # For more details, see:
54
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
55
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
56
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
57
+ config.disable_monkey_patching!
58
+
59
+ # Many RSpec users commonly either run the entire suite or an individual
60
+ # file, and it's useful to allow more verbose output when running an
61
+ # individual spec file.
62
+ if config.files_to_run.one?
63
+ # Use the documentation formatter for detailed output,
64
+ # unless a formatter has already been configured
65
+ # (e.g. via a command-line flag).
66
+ config.default_formatter = 'doc'
67
+ end
68
+
69
+ # Print the 10 slowest examples and example groups at the
70
+ # end of the spec run, to help surface which specs are running
71
+ # particularly slow.
72
+ config.profile_examples = 10
73
+
74
+ # Run specs in random order to surface order dependencies. If you find an
75
+ # order dependency and want to debug it, you can fix the order by providing
76
+ # the seed, which is printed after each run.
77
+ # --seed 1234
78
+ config.order = :random
79
+
80
+ # Seed global randomization in this process using the `--seed` CLI option.
81
+ # Setting this allows you to use `--seed` to deterministically reproduce
82
+ # test failures related to randomization by passing the same `--seed` value
83
+ # as the one that triggered the failure.
84
+ Kernel.srand config.seed
85
+ =end
86
+ end