Sha256: a1613ae4819eb7214a6dac2f521a6342abdbbcd0547d0455b51b08e4de95c9ed

Contents?: true

Size: 705 Bytes

Versions: 11

Compression:

Stored size: 705 Bytes

Contents

require 'spec/spec_helper'
require 'taza/fixture'

describe Taza::Fixtures do
  Taza::Fixture.any_instance.stubs(:base_path).returns('./spec/sandbox')  
  include Taza::Fixtures
  
  it "should be able to look up a fixture entity off fixture_methods module" do
    examples(:first_example).name.should eql('first')
  end
  
  it "should still raise method missing error" do
    lambda{zomgwtf(:first_example)}.should raise_error(NoMethodError)
  end
  
  #TODO: this test tests what is in entity's instance eval not happy with it being here
  it "should be able to look up a fixture entity off fixture_methods module" do
    examples(:first_example).user.name.should eql(users(:shatner).name)
  end
  
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
bret-watircraft-0.4.0 spec/fixtures_spec.rb
bret-watircraft-0.4.1 spec/fixtures_spec.rb
bret-watircraft-0.4.2 spec/fixtures_spec.rb
bret-watircraft-0.4.3 spec/fixtures_spec.rb
bret-watircraft-0.4.4 spec/fixtures_spec.rb
bret-watircraft-0.4.5 spec/fixtures_spec.rb
bret-watircraft-0.5.0 spec/fixtures_spec.rb
scudco-taza-0.8.1 spec/fixtures_spec.rb
scudco-taza-0.8.3 spec/fixtures_spec.rb
taza-0.8.2 spec/fixtures_spec.rb
taza-0.8.3 spec/fixtures_spec.rb