spec/fixture_spec.rb in taza-0.8.7 vs spec/fixture_spec.rb in taza-0.9.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'spec/spec_helper'
+require 'spec_helper'
require 'taza/fixture'
require 'extensions/array'
describe Taza::Fixture do
before :each do
@@ -23,16 +23,16 @@
fixture = Taza::Fixture.new
fixture.load_fixtures_from(@base_path)
fixture.pluralized_fixture_exists?('example').should be_true
fixture.pluralized_fixture_exists?('boo').should be_false
end
-
+
it "should be able to get all fixtures loaded excluding sub-folder fixtures" do
fixture = Taza::Fixture.new
fixture.load_fixtures_from(@base_path)
fixture.fixture_names.should be_equivalent([:examples,:users,:foos])
end
-
+
it "should be able to get specific fixture entities" do
fixture = Taza::Fixture.new
fixture.load_fixtures_from(@base_path)
examples = fixture.specific_fixture_entities(:examples, ['third_example'])
examples.length.should eql(1)