spec/mspire/isotope/aa_spec.rb in mspire-0.8.7 vs spec/mspire/isotope/aa_spec.rb in mspire-0.9.0
- old
+ new
@@ -2,19 +2,19 @@
require 'mspire/isotope/aa'
describe 'accessing an amino acid atom count' do
before do
- @alanine = {:c=>3, :h=>5, :o=>1, :n=>1, :s=>0, :p=>0, :se=>0}
+ @alanine = {:C=>3, :H=>5, :O=>1, :N=>1, :S=>0, :P=>0, :Se=>0}
end
it 'residue can be accessed with a symbol' do
hash = Mspire::Isotope::AA::FORMULAS[:A]
- [:c, :h, :o, :n, :s].each {|key| hash[key].should == @alanine[key] }
+ [:C, :H, :O, :N, :S].each {|key| hash[key].should == @alanine[key] }
end
it 'residue can be accessed with a string' do
hash = Mspire::Isotope::AA::FORMULAS['A']
- [:c, :h, :o, :n, :s].each {|key| hash[key].should == @alanine[key] }
+ [:C, :H, :O, :N, :S].each {|key| hash[key].should == @alanine[key] }
end
end