spec/taza/fixture_spec.rb in taza-2.1.0 vs spec/taza/fixture_spec.rb in taza-3.0.0
- old
+ new
@@ -1,8 +1,7 @@
require 'spec_helper'
require 'taza/fixture'
-require 'extensions/array'
describe Taza::Fixture do
before :each do
#TODO: we should generate the base project in a temp dir
@base_path = File.join(@original_directory,'spec','sandbox','fixtures','')
@@ -28,10 +27,10 @@
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)
- expect(fixture.fixture_names).to be_equivalent [:examples,:users,:foos]
+ expect(fixture.fixture_names).to contain_exactly(:examples, :users, :foos)
end
it "should be able to get specific fixture entities" do
fixture = Taza::Fixture.new
fixture.load_fixtures_from(@base_path)