spec/spectifly/base/builder_spec.rb in spectifly-0.0.10 vs spec/spectifly/base/builder_spec.rb in spectifly-0.0.11
- old
+ new
@@ -1,13 +1,12 @@
-require 'spec_helper'
require 'json'
describe Spectifly::Base::Builder do
describe '.from_path' do
it 'generates builder from entity at given path' do
path_builder = described_class.from_path(fixture_path('individual'))
- path_builder.root.should == 'Individual'
+ expect(path_builder.root).to eq('Individual')
end
end
describe '#build' do
it 'raises subclass responsibility error' do
@@ -19,11 +18,9 @@
end
describe '#custom_types' do
it 'return an array of all non-built-in types in result' do
entity = Spectifly::Entity.parse(fixture_path('group'))
- described_class.new(entity).custom_types.should =~ [
- 'individual'
- ]
+ expect(described_class.new(entity).custom_types).to match_array(['individual'])
end
end
-end
\ No newline at end of file
+end