spec/create_account_spec.rb in rodauth-1.17.0 vs spec/create_account_spec.rb in rodauth-1.18.0

- old
+ new

@@ -82,11 +82,11 @@ rodauth do enable :create_account end roda do |r| r.rodauth - next unless session[:account_id] - r.root{view :content=>"Logged In: #{DB[:accounts].where(:id=>session[:account_id]).get(:email)}"} + next unless rodauth.logged_in? + r.root{view :content=>"Logged In: #{DB[:accounts].where(:id=>rodauth.session_value).get(:email)}"} end visit '/create-account' fill_in 'Login', :with=>'foo2@example.com' fill_in 'Confirm Login', :with=>'foo2@example.com'