Sha256: 32785eaac0d0c803ce54d55726ea36eeab37a43ead2e4eeaa43703bf7a564368
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
require 'spec_helper' require 'straightedge' require 'abstracta/occupant' describe Abstracta::Occupant do it 'should have a position' do expect(subject.x).to be_an Integer expect(subject.y).to be_an Integer end context "#age" do it 'should be a year older' do expect { subject.step }.to change { subject.age }.by 1 end end #it 'should have a genetic code' do # expect(subject.dna).to be_a Abstracta::Genome #end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abstracta-0.1.1 | spec/abstracta/occupant_spec.rb |