Skip to content

Commit

Permalink
Update actionview-component require process
Browse files Browse the repository at this point in the history
Following a change to the docs at
https://github.com/github/view_component#installation and
https://github.com/github/view_component#setting-up-rspec, part of a
change to rename this gem to view_component (because it's not going to
be in Rails 6.1).

ViewComponent/view_component#206
  • Loading branch information
duncanjbrown authored and davidgisbey committed Mar 12, 2020
1 parent 58f5f53 commit 2dabc24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Expand Up @@ -9,7 +9,7 @@
require "action_mailer/railtie"
require "action_view/railtie"

require "action_view/component"
require "view_component/engine"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Expand Down
4 changes: 2 additions & 2 deletions spec/rails_helper.rb
Expand Up @@ -6,7 +6,7 @@
abort('The Rails environment is running in production mode!') if Rails.env.production?
require 'rspec/rails'
# Add additional requires below this line. Rails is not loaded until this point!
require 'action_view/component/test_helpers'
require 'view_component/test_helpers'
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
# run as spec files by default. This means that files in spec/support that end
Expand Down Expand Up @@ -69,7 +69,7 @@

config.include FactoryBot::Syntax::Methods

config.include ActionView::Component::TestHelpers
config.include ViewComponent::TestHelpers, type: :component

config.before { Faker::UniqueGenerator.clear }

Expand Down

0 comments on commit 2dabc24

Please sign in to comment.