A simple twilio app in rails and angular

rails_helper.rb 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. # Requires supporting ruby files with custom matchers and macros, etc, in
  7. # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
  8. # run as spec files by default. This means that files in spec/support that end
  9. # in _spec.rb will both be required and run as specs, causing the specs to be
  10. # run twice. It is recommended that you do not name files matching this glob to
  11. # end with _spec.rb. You can configure this pattern with the --pattern
  12. # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
  13. Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
  14. # Checks for pending migrations before tests are run.
  15. # If you are not using ActiveRecord, you can remove this line.
  16. ActiveRecord::Migration.maintain_test_schema!
  17. RSpec.configure do |config|
  18. # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
  19. config.fixture_path = "#{::Rails.root}/spec/fixtures"
  20. # If you're not using ActiveRecord, or you'd prefer not to run each of your
  21. # examples within a transaction, remove the following line or assign false
  22. # instead of true.
  23. config.use_transactional_fixtures = true
  24. # RSpec Rails can automatically mix in different behaviours to your tests
  25. # based on their file location, for example enabling you to call `get` and
  26. # `post` in specs under `spec/controllers`.
  27. #
  28. # You can disable this behaviour by removing the line below, and instead
  29. # explicitly tag your specs with their type, e.g.:
  30. #
  31. # RSpec.describe UsersController, :type => :controller do
  32. # # ...
  33. # end
  34. #
  35. # The different available types are documented in the features, such as in
  36. # https://relishapp.com/rspec/rspec-rails/docs
  37. config.infer_spec_type_from_file_location!
  38. end