spec/crc8_spec.rb in digest-crc-0.2.0 vs spec/crc8_spec.rb in digest-crc-0.3.0
- old
+ new
@@ -1,13 +1,10 @@
require 'spec_helper'
require 'crc_examples'
require 'digest/crc8'
describe Digest::CRC8 do
- before(:all) do
- @crc_class = Digest::CRC8
- @string = '1234567890'
- @expected = '52'
- end
+ let(:string) { '1234567890' }
+ let(:expected) { '52' }
it_should_behave_like "CRC"
end