Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename L::Config::Static to L::Config::Attribute

We can change the configuration, so Static doesn't sound right.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information...
commit 4d327222b7b0c4149eef333c0afd9a40765b761f 1 parent 4e39aad
@melo authored
View
2  lib/Logan/Config/Static.pm → lib/Logan/Config/Attribute.pm
@@ -1,4 +1,4 @@
-package Logan::Config::Static;
+package Logan::Config::Attribute;
use Moo::Role;
use namespace::autoclean;
View
8 t/40-config-static.t
@@ -5,14 +5,14 @@ use warnings;
use Test::More;
use Test::Deep;
use lib 't/tlib';
-use T::Config::Static;
+use T::Config::Attribute;
subtest 'access API' => sub {
- my $l = T::Config::Static->setup;
+ my $l = T::Config::Attribute->setup;
cmp_deeply($l->config, {}, 'config() is empty by default');
is($l->config('boo'), undef, '... so asking for something that doesnt exist, returns undef');
- $l = T::Config::Static->setup(config => { answer => 42 });
+ $l = T::Config::Attribute->setup(config => { answer => 42 });
cmp_deeply($l->config, { answer => 42 }, 'config() returns the full config now');
is($l->config('boo'), undef, '... but asking for something that doesnt exist, still undef');
is($l->config('answer'), 42, 'asking for something that is there returns the expected value');
@@ -20,7 +20,7 @@ subtest 'access API' => sub {
subtest 'config updates' => sub {
- my $l = T::Config::Static->setup;
+ my $l = T::Config::Attribute->setup;
cmp_deeply($l->config, {}, 'config() is empty by default');
is($l->update_called, 0, 'our update signal defaults to down');
View
2  t/tlib/T/Base/Queued.pm
@@ -2,6 +2,6 @@ package T::Base::Queued;
use Moo;
extends 'Logan';
-with 'Logan::Config::Static', 'T::Dispatch::Queue';
+with 'Logan::Config::Attribute', 'T::Dispatch::Queue';
1;
View
2  t/tlib/T/Config/Static.pm → t/tlib/T/Config/Attribute.pm
@@ -1,4 +1,4 @@
-package T::Config::Static;
+package T::Config::Attribute;
use Moo;
extends 'T::Base::Queued';
Please sign in to comment.
Something went wrong with that request. Please try again.