spec/random_spec.rb in slosilo-1.0.0 vs spec/random_spec.rb in slosilo-1.1.0

- old
+ new

@@ -2,8 +2,18 @@ describe Slosilo::Random do subject { Slosilo::Random } let(:other_salt) { Slosilo::Random::salt } - its('salt.length') { should == 32 } - its(:salt) { should_not == other_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 end