This repository has been archived by the owner on Jun 8, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabe Berke-Williams
committed
Oct 22, 2011
1 parent
4bffaa3
commit cf370c1
Showing
2 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters