Skip to content

Commit

Permalink
fixup! Adds environment boolean checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias J. Perez committed Oct 12, 2017
1 parent 7121609 commit 5d78679
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/amber/cli/commands/generator_spec.cr
Expand Up @@ -5,6 +5,8 @@ module Amber::CLI
describe MainCommand::Generate do
context "scaffold" do
it "generates and compile generated app" do
ENV["AMBER_ENV"] = "test"

MainCommand.run ["new", TESTING_APP]
Dir.cd(TESTING_APP)
MainCommand.run ["generate", "scaffold", "Animal", "name:string"]
Expand All @@ -17,7 +19,8 @@ module Amber::CLI
end

context "controllers" do
it "should generate controller with correct verbs and actions" do
it "generates controller with correct verbs and actions" do
ENV["AMBER_ENV"] = "test"
MainCommand.run ["new", TESTING_APP]
Dir.cd(TESTING_APP)
MainCommand.run ["generate", "controller", "Animal", "add:post", "list:get", "remove:delete"]
Expand Down

0 comments on commit 5d78679

Please sign in to comment.