Sha256: 2bd5ab099abdfaf7c53199fce7b18e9663be809fdbe9fb58489e86f3a484f279

Contents?: true

Size: 476 Bytes

Versions: 7

Compression:

Stored size: 476 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
makevoid-taza-0.8.6 spec/site_fixtures_spec.rb
scudco-taza-0.8.5 spec/site_fixtures_spec.rb
scudco-taza-0.8.6 spec/site_fixtures_spec.rb
scudco-taza-0.8.7 spec/site_fixtures_spec.rb
taza-0.8.5 spec/site_fixtures_spec.rb
taza-0.8.7 spec/site_fixtures_spec.rb
taza-0.8.6 spec/site_fixtures_spec.rb