1 { callPackage, test, stubs, should}:
3 bundlerEnv = callPackage ./default.nix stubs // {
4 basicEnv = callPackage ../bundled-common stubs;
7 justName = bundlerEnv {
9 gemset = ./test/gemset.nix;
15 gemset = ./test/gemset.nix;
16 gemfile = ./test/Gemfile;
17 lockfile = ./test/Gemfile.lock;
20 builtins.concatLists [
21 (test.run "bundlerEnv { name }" justName {
22 name = should.equal "test-0.1.2";
24 (test.run "bundlerEnv { pname }" pnamed
26 (should.haveKeys [ "name" "env" "postBuild" ])
28 name = should.equal "test-0.1.2";
30 postBuild = should.havePrefix "/nix/store";