Permalink
Browse files

[t/subcommands] chased API

A couple of overridden (not too useful) constructors had been removed.
Changed the tests to use the vanilla ones.
  • Loading branch information...
1 parent eecc3e9 commit 406f59910c37b7fa1f4c553d2ad778ecdfc85394 @masak masak committed Jun 26, 2010
View
@@ -37,8 +37,8 @@ class Mock::Builder does App::Pls::Builder {
}
my $core = App::Pls::Core.new(
- :projects(App::Pls::ProjectsState::Hash.new(%projects)),
- :ecosystem(App::Pls::Ecosystem::Hash.new(%projects)),
+ :projects(App::Pls::ProjectsState::Hash.new(:%projects)),
+ :ecosystem(App::Pls::Ecosystem::Hash.new(:%projects)),
:fetcher(Mock::Fetcher.new()),
:builder(Mock::Builder.new()),
);
View
@@ -25,8 +25,8 @@ class Mock::Fetcher does App::Pls::Fetcher {
}
my $core = App::Pls::Core.new(
- :projects(App::Pls::ProjectsState::Hash.new(%projects)),
- :ecosystem(App::Pls::Ecosystem::Hash.new(%projects)),
+ :projects(App::Pls::ProjectsState::Hash.new(:%projects)),
+ :ecosystem(App::Pls::Ecosystem::Hash.new(:%projects)),
:fetcher(Mock::Fetcher.new()),
);
@@ -68,8 +68,8 @@ class Mock::Installer does App::Pls::Installer {
}
my $core = App::Pls::Core.new(
- :projects(App::Pls::ProjectsState::Hash.new(%projects)),
- :ecosystem(App::Pls::Ecosystem::Hash.new(%projects)),
+ :projects(App::Pls::ProjectsState::Hash.new(:%projects)),
+ :ecosystem(App::Pls::Ecosystem::Hash.new(:%projects)),
:fetcher(Mock::Fetcher.new()),
:builder(Mock::Builder.new()),
:tester(Mock::Tester.new()),
@@ -64,8 +64,8 @@ class Mock::Installer does App::Pls::Installer {
}
my $core = App::Pls::Core.new(
- :projects(App::Pls::ProjectsState::Hash.new(%projects)),
- :ecosystem(App::Pls::Ecosystem::Hash.new(%projects)),
+ :projects(App::Pls::ProjectsState::Hash.new(:%projects)),
+ :ecosystem(App::Pls::Ecosystem::Hash.new(:%projects)),
:fetcher(Mock::Fetcher.new()),
:builder(Mock::Builder.new()),
:tester(Mock::Tester.new()),
@@ -65,8 +65,8 @@ class Mock::Installer does App::Pls::Installer {
}
my $core = App::Pls::Core.new(
- :projects(App::Pls::ProjectsState::Hash.new(%projects)),
- :ecosystem(App::Pls::Ecosystem::Hash.new(%projects)),
+ :projects(App::Pls::ProjectsState::Hash.new(:%projects)),
+ :ecosystem(App::Pls::Ecosystem::Hash.new(:%projects)),
:fetcher(Mock::Fetcher.new()),
:builder(Mock::Builder.new()),
:tester(Mock::Tester.new()),
View
@@ -47,8 +47,8 @@ class Mock::Tester does App::Pls::Tester {
}
my $core = App::Pls::Core.new(
- :projects(App::Pls::ProjectsState::Hash.new(%projects)),
- :ecosystem(App::Pls::Ecosystem::Hash.new(%projects)),
+ :projects(App::Pls::ProjectsState::Hash.new(:%projects)),
+ :ecosystem(App::Pls::Ecosystem::Hash.new(:%projects)),
:fetcher(Mock::Fetcher.new()),
:builder(Mock::Builder.new()),
:tester(Mock::Tester.new()),

0 comments on commit 406f599

Please sign in to comment.