spec/random_spec.rb in slosilo-0.0.0 vs spec/random_spec.rb in slosilo-0.1.2
- old
+ new
@@ -2,18 +2,8 @@
describe Slosilo::Random do
subject { Slosilo::Random }
let(:other_salt) { Slosilo::Random::salt }
- describe '#salt' do
- subject { super().salt }
- describe '#length' do
- subject { super().length }
- it { is_expected.to eq(32) }
- end
- end
-
- describe '#salt' do
- subject { super().salt }
- it { is_expected.not_to eq(other_salt) }
- end
+ its('salt.length') { should == 32 }
+ its(:salt) { should_not == other_salt }
end