Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 406f59910c37b7fa1f4c553d2ad778ecdfc85394 1 parent eecc3e9
@masak masak authored
View
4 t/subcommands/build.t
@@ -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
4 t/subcommands/fetch.t
@@ -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()),
);
View
4 t/subcommands/install-skip-tests.t
@@ -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()),
View
4 t/subcommands/install-with-force.t
@@ -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()),
View
4 t/subcommands/install-with-test.t
@@ -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
4 t/subcommands/test.t
@@ -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()),
Please sign in to comment.
Something went wrong with that request. Please try again.