spec/integration/setup_spec.rb in hanami-2.0.0.beta4 vs spec/integration/setup_spec.rb in hanami-2.0.0.rc1
- old
+ new
@@ -61,15 +61,15 @@
allow(Hanami).to receive(:bundled?).and_call_original
expect(Hanami).to receive(:bundled?).with("hanami-router").and_return(false)
with_tmp_directory(Dir.mktmpdir) do
write "config/app.rb", <<~RUBY
- require "hanami"
+ require "hanami"
- module TestApp
- class App < Hanami::App
+ module TestApp
+ class App < Hanami::App
+ end
end
- end
RUBY
expect { setup }.to change { Hanami.app? }.to true
end
end