package pelican.controllers

import grails.testing.web.controllers.ControllerUnitTest
import spock.lang.Specification

import static org.springframework.http.HttpStatus.METHOD_NOT_ALLOWED

import pelican.AccountController

class AccountControllerSpec extends Specification implements ControllerUnitTest<AccountController> {


    void setup() {
	}


    void "test POST request"() {
        when:
		true == true

        then:
		true == true
    }
	
	void "test Post not allowed"(){
        when:
        request.method = 'POST'
        controller.customer_profile()

        then:
		println response.status
		println METHOD_NOT_ALLOWED.value()
        response.status == METHOD_NOT_ALLOWED.value()
	}
}