spec/site_fixtures_spec.rb in taza-0.8.4 vs spec/site_fixtures_spec.rb in taza-0.8.5
- old
+ new
@@ -1,15 +1,17 @@
-require 'spec/spec_helper'
-require 'taza/fixture'
-
-describe "Site Specific Fixtures" do
- include Taza::Fixtures::FooSite
-
- it "should be able to access fixtures in sub-folders" do
- bars(:foo).name.should eql("foo")
- end
-
- it "should not be able to access non-site-specific fixtures" do
- lambda{foos(:gap)}.should raise_error(NoMethodError)
- end
-
-end
+require 'spec/spec_helper'
+require 'taza/fixture'
+
+describe "Site Specific Fixtures" do
+ Taza::Fixture.stubs(:base_path).returns(File.join('.','spec','sandbox','fixtures',''))
+ require 'taza/fixtures'
+ include Taza::Fixtures::FooSite
+
+ it "should be able to access fixtures in sub-folders" do
+ bars(:foo).name.should eql("foo")
+ end
+
+ it "should not be able to access non-site-specific fixtures" do
+ lambda{foos(:gap)}.should raise_error(NoMethodError)
+ end
+
+end