Sha256: 5b529b041e98c13bb28a89b2f8704ad5e0f6636f196d9fbf201d638432a73e30
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
require 'spec_helper' describe "Site Specific Fixtures" do Taza::Fixture.stubs(:base_path).returns(File.join('.','spec','sandbox','fixtures','')) Taza.load_fixtures include Taza::Fixtures::FooSite it "should be able to access fixtures in sub-folders" do expect(bars(:foo).name).to eql 'foo' end it "should not be able to access non-site-specific fixtures" do expect(lambda{foos(:gap)}).to raise_error(NoMethodError) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
taza-3.0.0 | spec/taza/site_fixtures_spec.rb |
taza-2.1.0 | spec/taza/site_fixtures_spec.rb |
taza-2.0 | spec/taza/site_fixtures_spec.rb |
taza-1.0 | spec/taza/site_fixtures_spec.rb |