Permalink
Browse files

Check that Jammit runs at appropriate times

  • Loading branch information...
1 parent f5902ae commit 657f63d4e663d8e87e5bbe08c22182e0e6ef953b Gabe Berke-Williams committed Aug 12, 2011
Showing with 22 additions and 0 deletions.
  1. +11 −0 features/kumade_executable.feature
  2. +11 −0 features/step_definitions/bundler_steps.rb
@@ -78,3 +78,14 @@ Feature: Kumade executable
When I append to "new-file" with "dirty it up"
And I run kumade with "pretend-staging"
Then the output from "bundle exec kumade pretend-staging" should contain "==> ! Cannot deploy: repo is not clean"
+
+ Scenario: Jammit packager runs if Jammit is installed
+ When I run kumade with "pretend-staging"
+ Then the output from "bundle exec kumade pretend-staging" should contain "==> ! Error: Jammit::MissingConfiguration"
+
+ Scenario: Jammit packager does not run if Jammit is not installed
+ Given an empty Gemfile
+ And I set up the Gemfile with kumade
+ And I rebundle
+ When I run kumade with "pretend-staging"
+ Then the output from "bundle exec kumade pretend-staging" should not contain "==> ! Error: Jammit::MissingConfiguration"
@@ -2,6 +2,17 @@
When %{I run `bundle --gemfile=./Gemfile --local || bundle --gemfile=./Gemfile`}
end
+When /^I rebundle$/ do
+ steps %{
+ When I bundle
+ And I commit everything in the current repo
+ }
+end
+
+Given /^an empty Gemfile$/ do
+ When %{I write to "Gemfile" with:}, ""
+end
+
When /^I set up the Gemfile with kumade$/ do
steps %{
When I write to "Gemfile" with:

0 comments on commit 657f63d

Please sign in to comment.