# Tests for the CreateProject method.

use strict;
use Test::More tests => 1;

use lib '../../../lib';
use Test::MockObject;
use Codestriker;
use Codestriker::Http::Method::CreateProjectMethod;

# Create a CGI mock object for these tests.
my $mock_query = Test::MockObject->new();
$mock_query->mock('url',
            sub { 'http://localhost.localdomain/codestriker/codestriker.pl' } );

my $url_cgi = Codestriker::Http::Method::CreateProjectMethod->new($mock_query);

is($url_cgi->url(), $mock_query->url() . '?action=create_project',
   "List projects URL CGI syntax");
