@@ -45,6 +45,32 @@ func TestBuildSteps_Ask(t *testing.T) {
4545 buildSteps : []string {"npm i" , "npm exec next build" },
4646 wantErr : false ,
4747 },
48+ {
49+ name : "Bundler" ,
50+ q : & BuildSteps {},
51+ args : args {models.Answers {
52+ Stack : models .GenericStack ,
53+ Type : models.RuntimeType {Runtime : models .Ruby , Version : "3.3" },
54+ Dependencies : map [string ]map [string ]string {},
55+ DependencyManagers : []models.DepManager {models .Bundler },
56+ Environment : map [string ]string {},
57+ }},
58+ buildSteps : []string {"bundle install" },
59+ wantErr : false ,
60+ },
61+ {
62+ name : "Bundler with Rails" ,
63+ q : & BuildSteps {},
64+ args : args {models.Answers {
65+ Stack : models .Rails ,
66+ Type : models.RuntimeType {Runtime : models .Ruby , Version : "3.3" },
67+ Dependencies : map [string ]map [string ]string {},
68+ DependencyManagers : []models.DepManager {models .Bundler },
69+ Environment : map [string ]string {},
70+ }},
71+ buildSteps : []string {"bundle install" , "bundle exec rails assets:precompile" },
72+ wantErr : false ,
73+ },
4874 }
4975 for _ , tt := range tests {
5076 t .Run (tt .name , func (t * testing.T ) {
0 commit comments