From 621698ec69ca9088bfeb16eb905c9e5681188e35 Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Fri, 21 Oct 2011 22:28:16 -0400 Subject: [PATCH] Add feature for NoopPackager --- features/no_op_packager.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 features/no_op_packager.feature diff --git a/features/no_op_packager.feature b/features/no_op_packager.feature new file mode 100644 index 0000000..cc20048 --- /dev/null +++ b/features/no_op_packager.feature @@ -0,0 +1,17 @@ +@slow @creates-remote @disable-bundler +Feature: No-op packager + As a user + I want Kumade to gracefully handle occasions when I have no assets to package + So that I am not forced to package my assets + + Background: + Given a new Rails app + When I create a Heroku remote for "my-app" named "staging" + + Scenario: No-op packager runs in pretend mode if Jammit is not installed + When I run kumade with "staging -p" + Then the output should contain "==> Packaged with Kumade::NoopPackager" + + Scenario: No-op packager runs in normal mode if Jammit is not installed + When I run kumade with "staging -v" + Then the output should contain "==> Packaged with Kumade::NoopPackager"