Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Clean up test.

  • Loading branch information...
commit bb695b9d06acf3fa7de5fccc842c316deb500fe3 1 parent 92aa8f4
Gabe Berke-Williams authored February 02, 2012
9  spec/kumade/packagers/jammit_packager_spec.rb
@@ -7,8 +7,9 @@
7 7
 
8 8
   it_should_behave_like "packager"
9 9
 
10  
-  let(:jammit_public_root) { defined?(Jammit.public_root) ? Jammit.public_root : Jammit::PUBLIC_ROOT }
11  
-  its(:assets_path) { should == File.join(jammit_public_root, Jammit.package_path) }
  10
+  it "has the correct asset path" do
  11
+    subject.assets_path.should == File.join(jammit_public_root, Jammit.package_path)
  12
+  end
12 13
 
13 14
   it "knows how to package itself" do
14 15
     ::Jammit.stubs(:package!)
@@ -25,4 +26,8 @@
25 26
     before { Object.send(:remove_const, :Jammit) }
26 27
     it     { should_not be_installed }
27 28
   end
  29
+
  30
+  def jammit_public_root
  31
+    defined?(Jammit.public_root) ? Jammit.public_root : Jammit::PUBLIC_ROOT
  32
+  end
28 33
 end

0 notes on commit bb695b9

Please sign in to comment.
Something went wrong with that request. Please try again.