Skip to content

Commit

Permalink
Merge pull request #115 from CMDBrew/fix/113
Browse files Browse the repository at this point in the history
fix: missing thor class for invoke when installing action_text
  • Loading branch information
ilunglee authored Oct 28, 2021
2 parents f7ec414 + e749441 commit feb5f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/generators/adminterface/comments/comments_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.next_migration_number(dirname)
end

def install_action_text
invoke "action_text:install"
rails_command "action_text:install"
end

def create_initializer
Expand Down
2 changes: 1 addition & 1 deletion test/generators/comments_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CommentsGeneratorTest < GeneratorTestCase
teardown :teardown_app

def stub_action_text_installation
described_class.any_instance.stubs(:invoke).with("action_text:install").returns(true)
described_class.any_instance.stubs(:rails_command).with("action_text:install").returns(true)
end

test "installs action text" do
Expand Down

0 comments on commit feb5f62

Please sign in to comment.