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

Commit

Permalink
Clean up test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Feb 2, 2012
1 parent 92aa8f4 commit bb695b9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/kumade/packagers/jammit_packager_spec.rb
Expand Up @@ -7,8 +7,9 @@

it_should_behave_like "packager"

let(:jammit_public_root) { defined?(Jammit.public_root) ? Jammit.public_root : Jammit::PUBLIC_ROOT }
its(:assets_path) { should == File.join(jammit_public_root, Jammit.package_path) }
it "has the correct asset path" do
subject.assets_path.should == File.join(jammit_public_root, Jammit.package_path)
end

it "knows how to package itself" do
::Jammit.stubs(:package!)
Expand All @@ -25,4 +26,8 @@
before { Object.send(:remove_const, :Jammit) }
it { should_not be_installed }
end

def jammit_public_root
defined?(Jammit.public_root) ? Jammit.public_root : Jammit::PUBLIC_ROOT
end
end

0 comments on commit bb695b9

Please sign in to comment.