Skip to content

Commit

Permalink
[t/subcommands] chased API
Browse files Browse the repository at this point in the history
A couple of overridden (not too useful) constructors had been removed.
Changed the tests to use the vanilla ones.
  • Loading branch information
Carl Masak committed Jun 26, 2010
1 parent eecc3e9 commit 406f599
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions t/subcommands/build.t
Expand Up @@ -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()),
);
Expand Down
4 changes: 2 additions & 2 deletions t/subcommands/fetch.t
Expand Up @@ -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()),
);

Expand Down
4 changes: 2 additions & 2 deletions t/subcommands/install-skip-tests.t
Expand Up @@ -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()),
Expand Down
4 changes: 2 additions & 2 deletions t/subcommands/install-with-force.t
Expand Up @@ -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()),
Expand Down
4 changes: 2 additions & 2 deletions t/subcommands/install-with-test.t
Expand Up @@ -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()),
Expand Down
4 changes: 2 additions & 2 deletions t/subcommands/test.t
Expand Up @@ -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()),
Expand Down

0 comments on commit 406f599

Please sign in to comment.