Sha256: 914b43d4f9e34fb0ac7df794b6f200f1e9fab7bd6dc1ac47a19d533ec4eec658
Contents?: true
Size: 644 Bytes
Versions: 9
Compression:
Stored size: 644 Bytes
Contents
# Encoding: utf-8 require 'spec_helper' require 'chemistrykit/formula/chemist_aware' describe ChemistryKit::Formula::ChemistAware do class StubFormula include ChemistryKit::Formula::ChemistAware end before(:each) do @stub_formula = StubFormula.new @stub_chemist = double 'ChemistryKit::Chemist' end it 'should have accessors for the chemist' do @stub_formula.chemist = @stub_chemist @stub_formula.chemist.should be @stub_chemist end it 'should define a way to check if the formula is user aware' do @stub_formula.singleton_class.include?(ChemistryKit::Formula::ChemistAware).should be_true end end
Version data entries
9 entries across 9 versions & 1 rubygems