Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Split Jammit into its own feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Oct 22, 2011
1 parent 4bffaa3 commit cf370c1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
31 changes: 31 additions & 0 deletions features/jammit.feature
@@ -0,0 +1,31 @@
@creates-remote @disable-bundler
Feature: Jammit
As a user
I want Kumade to auto-package with Jammit
So that I don't have to remember to package assets

Background:
Given a directory named "executable"
And I cd to "executable"
And I set up the Gemfile with kumade
And I add "jammit" to the Gemfile
And I bundle
When I set up a git repo
And I create a Heroku remote named "pretend-staging"

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: Run custom task before jammit
Given I write to "Rakefile" with:
"""
namespace :kumade do
task :before_asset_compilation do
puts 'Hi!'
end
end
"""
When I run kumade with "pretend-staging -p"
Then the output should contain "kumade:before_asset_compilation"
And the output should contain "==> Packaged with Kumade::JammitPackager"
17 changes: 0 additions & 17 deletions features/kumade_executable.feature
Expand Up @@ -79,20 +79,3 @@ 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: Run custom task before jammit
Given I write to "Rakefile" with:
"""
namespace :kumade do
task :before_asset_compilation do
puts 'Hi!'
end
end
"""
When I run kumade with "pretend-staging -p"
Then the output should contain "kumade:before_asset_compilation"
And the output should contain "==> Packaged with Kumade::JammitPackager"

0 comments on commit cf370c1

Please sign in to comment.