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