 					@req.session._csrf = @csrfToken = "mock-csrf-token"
 					@res.render = (page, opts)=>
 						url = JSON.parse(opts.subscriptionFormOptions).successURL
-						url.should.equal("#{Settings.siteUrl}/user/subscription/create?_csrf=#{@csrfToken}")
+						url.should.equal("#{@settings.siteUrl}/user/subscription/create?_csrf=#{@csrfToken}")
 						done()
 					@SubscriptionController.paymentPage @req, @res
 

SandboxedModule = require('sandboxed-module')
sinon = require 'sinon'
Settings   = require 'settings-sharelatex'
should = require("chai").should()
MockRequest = require "../helpers/MockRequest"
MockResponse = require "../helpers/MockResponse"

			apis:
				recurly:
					subdomain:"sl.recurly.com"
			siteUrl: "http://de.sharelatex.dev:3000"

		@SubscriptionController = SandboxedModule.require modulePath, requires:
			'../../managers/SecurityManager': @SecurityManager
