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

Commit

Permalink
Clean up spec so it doesn't delete the PWD.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Sep 9, 2011
1 parent 39c0a32 commit 8949cdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/kumade/deployer_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8949cdc

Please sign in to comment.