Skip to content

Commit 1f9064d

Browse files
committed
Fix tests
1 parent 4c23190 commit 1f9064d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

lib/rodauth/rails.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class Error < StandardError
1212
autoload :Auth, "rodauth/rails/auth"
1313
autoload :Mailer, "rodauth/rails/mailer"
1414

15+
@app = nil
16+
@middleware = true
17+
@tilt = true
18+
1519
class << self
1620
def lib(**options, &block)
1721
c = Class.new(Rodauth::Rails::App)
@@ -77,10 +81,6 @@ def configure
7781
yield self
7882
end
7983

80-
@app = nil
81-
@middleware = true
82-
@tilt = true
83-
8484
attr_writer :app
8585
attr_writer :middleware
8686
attr_writer :tilt

test/generators/install_generator_test.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ class InstallGeneratorTest < Rails::Generators::TestCase
2020
test "rodauth initializer" do
2121
run_generator
2222

23-
assert_file "config/initializers/rodauth.rb", <<~RUBY
24-
Rodauth::Rails.configure do |config|
25-
config.app = "RodauthApp"
26-
end
27-
RUBY
23+
assert_file "config/initializers/rodauth.rb", /Rodauth::Rails.configure do |config|/
2824
end
2925

3026
test "sequel integration" do

0 commit comments

Comments
 (0)