Sha256: bfb1484a714fdb0aea36540e9b1f8c057de38b645cd22bbed7b1f16c070d84b3

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

require 'rails_helper'

describe StaticRecord do
  subject(:base) { StaticRecord::Base.new }

  describe 'configuration and first instance' do
    it 'should get the default path for static db' do
      expect(StaticRecord::Base.file_path).to eq("db/static")
    end

    it 'should do set a custom path for static db' do
      StaticRecord::Base.file_path = "foo/bar"

      expect(StaticRecord::Base.file_path).to eq('foo/bar')
    end

    it 'should load yaml test file' do
      expect(StaticRecord::Base.load).to eq('hello')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_static_record-0.1.1 spec/static_record_spec.rb
rails_static_record-0.1.0 spec/static_record_spec.rb