Sha256: 10d007188e2bc235caf18089e8f36bd094f2c9227fa2c3555c7c93bc8013a49a

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 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
    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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
taza-0.9.2.1 spec/taza/site_fixtures_spec.rb
taza-0.9.2.0 spec/taza/site_fixtures_spec.rb
taza-0.9.1.2 spec/site_fixtures_spec.rb
taza-0.9.1.1 spec/site_fixtures_spec.rb
taza-0.9.1 spec/site_fixtures_spec.rb
taza-0.9.0 spec/site_fixtures_spec.rb