Skip to content

Commit

Permalink
updated compass verification
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrec1 committed May 7, 2011
1 parent 6582312 commit 77eda7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/inploy/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def after_update_code
run "rm -R -f public/assets" if jammit_is_installed?
run "RAILS_ENV=#{environment} script/delayed_job restart" if file_exists?("script/delayed_job")
rake_if_included "more:parse"
run "compass compile" if file_exists?("config/initializers/compass.rb")
run "compass compile" if file_exists?("config/compass.rb")
rake_if_included "barista:brew"
rake_if_included "asset:packager:build_all"
rake_if_included "hoptoad:deploy RAILS_ENV=#{environment} TO=#{environment} REPO=#{repository} REVISION=#{`git log | head -1 | cut -d ' ' -f 2`}"
Expand Down
8 changes: 4 additions & 4 deletions spec/shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,14 @@
subject.local_update
end

it "should compile compass files if the file config/initializers/compass.rb exists" do
file_exists "config/initializers/compass.rb"
it "should compile compass files if the file config/compass.rb exists" do
file_exists "config/compass.rb"
expect_command "compass compile"
subject.local_update
end

it "should not compile compass files if the file config/initializers/compass.rb doesn't exists" do
file_doesnt_exists "config/initializers/compass.rb"
it "should not compile compass files if the file config/compass.rb doesn't exists" do
file_doesnt_exists "config/compass.rb"
dont_accept_command "compass compile"
subject.local_update
end
Expand Down

0 comments on commit 77eda7f

Please sign in to comment.