Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
=encoding utf8
=head1 NAME
Mojolicious::Guides::Rendering - Rendering
=head1 OVERVIEW
Testing your L<Mojolicious> application.
=encoding utf8
=head1 NAME
Mojolicious::Guides::Testing - TDD gives you Mojo.
=head1 OVERVIEW
Testing your L<Mojolicious> application.
=encoding utf8
=head1 NAME
Mojolicious::Guides::Testing - TDD gives you Mojo.
=head1 OVERVIEW
Testing your L<Mojolicious> application.
=encoding utf8
=head1 NAME
Mojolicious::Guides::Testing - TDD gives you Mojo.
=head1 OVERVIEW
Testing your L<Mojolicious> application.
commit 0601acc9b4ae5cfe949415c3cb501596fa8417f2
Author: Marcus Ramberg <[email protected]>
Date: Sun Oct 3 18:07:52 2010 +0200
Support .mode. json config file
diff --git a/lib/Mojolicious/Plugin/JsonConfig.pm b/lib/Mojolicious/Plugin/JsonConfig.pm
index 9ceb878..e314447 100644
--- a/lib/Mojolicious/Plugin/JsonConfig.pm
+++ b/lib/Mojolicious/Plugin/JsonConfig.pm
diff --git a/lib/Mojolicious/Lite.pm b/lib/Mojolicious/Lite.pm
index 7a1f22e..2b561e7 100644
--- a/lib/Mojolicious/Lite.pm
+++ b/lib/Mojolicious/Lite.pm
@@ -669,6 +669,10 @@ it with normal Perl unit tests like C<t/funky.t>.
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)->content_like(qr/Funky!/);
+Note: When testing like this, the app name is taken from the test script
+so if you depend on it, you need to give the test the same name as your
t/bryggws.t ..
1..3
usage: t/bryggws.t COMMAND [OPTIONS]
Tip: CGI, FastCGI and PSGI environments can be automatically detected very
often and work without commands.
These commands are currently available:
generate Generate files and directories from templates.
inflate Inflate embedded files to real files.
[marcus@labs /usr/local/etc/nginx/sites]$ cat nordaaker.conf
server {
listen 80;
server_name nordaaker.com www.nordaaker.com;
include fastcgi_params;
access_log logs/nordaaker.access.log;
error_log logs/nordaaker.error.log;
location / {
root /usr/local/www/nordaaker;
}
diff --git a/lib/Moose/Error/Default.pm b/lib/Moose/Error/Default.pm
index 0c81d0e..9588c65 100644
--- a/lib/Moose/Error/Default.pm
+++ b/lib/Moose/Error/Default.pm
@@ -16,7 +16,12 @@ Class::MOP::MiniTrait::apply(__PACKAGE__, 'Moose::Meta::Object::Trait');
sub new {
my ( $self, @args ) = @_;
- $self->create_error_confess( @args );
+ if(exists $ENV{MOOSE_CROAK} && $ENV{MOOSE_CROAK}) {
/Users/marcus/perl5/perlbrew/bin/perl "-Iinc" "-MModule::Install::ExtraTests" "-e" "Module::Install::ExtraTests::__harness('Test::Harness', 1, 'xt/author', '', '', 0, 'blib/lib', 'blib/arch')" t/*.t t/000_recipes/*.t t/010_basics/*.t t/020_attributes/*.t t/030_roles/*.t t/040_type_constraints/*.t t/050_metaclasses/*.t t/060_compat/*.t t/070_native_traits/*.t t/100_bugs/*.t t/200_examples/*.t t/300_immutable/*.t t/400_moose_util/*.t t/500_test_moose/*.t t/600_todo_tests/*.t
t/000_load.t ...................................................... ok
t/000_recipes/basics_recipe10.t ................................... ok
t/000_recipes/moose_cookbook_basics_recipe1.t ..................... ok
t/000_recipes/moose_cookbook_basics_recipe11.t .................... ok
t/000_recipes/moose_cookbook_basics_recipe12.t .................... ok
t/000_recipes/moose_cookbook_basics_recipe2.t ..................... ok
t/000_recipes/moose_cookbook_basics_recipe3.t ..................... ok
t/000_recipes/moose_cookbook_basics_recipe4.t ...