Sha256: a38ea09f88ea74c5c01304be8718bfb0052ae825dffdc7559a15da80ae934562
Contents?: true
Size: 437 Bytes
Versions: 4
Compression:
Stored size: 437 Bytes
Contents
require 'spec_helper' module Alf class Database describe Options, "viewpoint" do subject{ opts.viewpoint } let(:opts){ Options.new } context 'by default' do it { should be(Viewpoint::NATIVE) } end context 'when explicitely set' do let(:mod){ Module.new{ include Alf::Viewpoint } } before{ opts.viewpoint = mod } it{ should be(mod) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems