spec/models/model_spec.rb in pupa-0.2.3 vs spec/models/model_spec.rb in pupa-0.2.4

- old
+ new

@@ -65,11 +65,11 @@ end let :klass_with_relative_path do Class.new do include Pupa::Model - self.schema = 'schema' + self.schema = 'schema.json' end end it 'should accept a hash' do expect(Music::Band.json_schema).to eq({ @@ -89,15 +89,15 @@ }) end it 'should accept an absolute path' do expect(File).to receive(:read).and_return('{}') - expect(klass_with_absolute_path.json_schema).to eq({}) + expect(klass_with_absolute_path.json_schema).to eq('/path/to/schema.json') end it 'should accept a relative path' do expect(File).to receive(:read).and_return('{}') - expect(klass_with_relative_path.json_schema).to eq({}) + expect(klass_with_relative_path.json_schema).to eq('schema.json') end end describe '#initialize' do it 'should set the _type' do