Permalink
Browse files

Clean up spec so it doesn't delete the PWD.

  • Loading branch information...
1 parent 39c0a32 commit 8949cdc9d84ef6cc7773db54951246ff9971651a @gabebw gabebw committed Sep 9, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/kumade/deployer_spec.rb
@@ -291,10 +291,12 @@
end
describe Kumade::Deployer, "#jammit_assets_path" do
- let(:current_dir) { File.expand_path(Dir.pwd) }
+ before do
+ Jammit.stub(:package_path => 'blerg')
+ end
it "returns the correct asset path" do
- Jammit.stub(:package_path => 'blerg')
+ current_dir = File.expand_path(Dir.pwd)
subject.jammit_assets_path.should == File.join(current_dir, 'public', 'blerg')
end
end

0 comments on commit 8949cdc

Please sign in to comment.