Skip to content

Commit

Permalink
Testing CI without mountable_engine? stub that leaking to other specs
Browse files Browse the repository at this point in the history
Other specs always refere to mountable_engine?

Like:
  99) Rspec::Generators::ScaffoldGenerator standard controller spec with --controller_specs
      Failure/Error: before { run_generator %w[posts --controller_specs] }

      Thor::UndefinedCommandError:
        Could not find command "mountable_engine?".

Like if the stub was leaking
  • Loading branch information
benoittgt committed Nov 20, 2020
1 parent fb018f1 commit 5d2c5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/generators/rspec/scaffold/scaffold_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
it { is_expected.to contain('renders a JSON response with errors for the post') }
end

describe 'in an engine' do
xdescribe 'in an engine' do
before do
allow_any_instance_of(::Rails::Generators::NamedBase).to receive(:mountable_engine?).and_return(true)
run_generator %w[posts --request_specs]
Expand Down

0 comments on commit 5d2c5ed

Please sign in to comment.