Sha256: c3d9a060075b1f13ac9ac5e8d5409df15f5afb0ab30802b67f3349a5d8e12c55
Contents?: true
Size: 1.25 KB
Versions: 13
Compression:
Stored size: 1.25 KB
Contents
require 'test_helper' module Vedeu module Repositories describe Model do let(:described) { Vedeu::Repositories::ModelTestClass } let(:instance) { described.new(attributes) } let(:attributes) { { name: 'hydrogen' } } describe 'accessors' do it { instance.must_respond_to(:repository) } it { instance.must_respond_to(:repository=) } end describe '.build' do let(:attributes) {} subject { described.build(attributes) { } } # @todo Add more tests. # it { skip } end describe '.child' do let(:klass) {} subject { described.child(klass) } it { described.must_respond_to(:member) } it { described.must_respond_to(:collection) } # @todo Add more tests. # it { skip } end describe '.repository' do let(:klass) {} subject { described.repository(klass) } # @todo Add more tests. # it { skip } end describe '#store' do subject { instance.store } it 'returns the model' do subject.must_be_instance_of(Vedeu::Repositories::ModelTestClass) end end end # Model end # Repositories end # Vedeu
Version data entries
13 entries across 13 versions & 1 rubygems