Sha256: 0ef00a5f709c1b431cfa83690f9bb2d1b091fb6d8563effd62a861022520242e
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
require 'spec_helper' module Alf module Algebra describe Autonum do let(:operator_class){ Autonum } it_should_behave_like("An operator class") context "with default attribute name" do subject{ a_lispy.autonum(an_operand) } it{ should be_a(Autonum) } it 'has :autonum as attribute name' do subject.as.should eq(:autonum) end end # default attribute name context "with explicit attribute name" do subject{ a_lispy.autonum(an_operand, :unique) } it{ should be_a(Autonum) } it 'has :unique as attribute name' do subject.as.should eq(:unique) end end # explicit attribute name end end end
Version data entries
4 entries across 4 versions & 1 rubygems