Permalink
Browse files

Clean up test.

  • Loading branch information...
1 parent 92aa8f4 commit bb695b9d06acf3fa7de5fccc842c316deb500fe3 @gabebw gabebw committed Feb 2, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 spec/kumade/packagers/jammit_packager_spec.rb
@@ -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!)
@@ -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.