Sha256: 21ad6c2d32f88a92e6bf2cc62c66f42e5687c264a731d4be07cdaf6f29a358f8
Contents?: true
Size: 1.12 KB
Versions: 17
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true require 'test_helper' module Vedeu class DSLGeometryTestClass include Vedeu::DSL::Geometry end # DSLGeometryTestClass module DSL describe Geometry do let(:described) { Vedeu::DSL::Geometry } let(:included_described) { Vedeu::DSLGeometryTestClass } # describe '#geometry' do # context 'when the required block is not given' do # subject { instance.geometry } # it { proc { subject }.must_raise(Vedeu::Error::RequiresBlock) } # end # context 'when the block is given' do # subject { instance.geometry { } } # context 'when the name is not given' do # it 'uses the name of the model' do # # @todo Add more tests. # end # end # context 'when the name is given' do # # @todo Add more tests. # end # end # end describe '.included' do subject { described.included(included_described) } it { subject.must_be_instance_of(Class) } end end # Geometry end # DSL end # Vedeu
Version data entries
17 entries across 17 versions & 1 rubygems