Sha256: 6aa0fe447a9c5be40ba749dae4bb14d545a82de463a8fa69d3ba1bdef3205856
Contents?: true
Size: 291 Bytes
Versions: 2
Compression:
Stored size: 291 Bytes
Contents
require 'spec_helper' require 'rails_helper' RSpec.describe StaticRecord::Base, :type => :model do it 'allows to store primary key' do Article.primary_key :author expect(Article.pkey).to eql(:author) Article.primary_key :name # restoring primary key for other tests end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
static-record-1.0.0.pre.1 | spec/models/static_record/base_spec.rb |
static-record-1.0.0.pre | spec/models/static_record/base_spec.rb |