We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e55910 commit 22bdfffCopy full SHA for 22bdfff
spec/generators/rspec/scaffold/scaffold_generator_spec.rb
@@ -39,6 +39,15 @@
39
it { is_expected.to contain('renders a JSON response with the post') }
40
it { is_expected.to contain('renders a JSON response with errors for the post') }
41
end
42
+
43
+ describe 'in an engine' do
44
+ before do
45
+ allow_any_instance_of(::Rails::Generators::NamedBase).to receive(:mountable_engine?).and_return(true)
46
+ run_generator %w[posts --request_specs]
47
+ end
48
49
+ it { is_expected.to contain('Engine.routes.url_helpers') }
50
51
52
53
describe 'standard controller spec' do
0 commit comments