spec/csl/style/names_spec.rb in csl-1.2.1 vs spec/csl/style/names_spec.rb in csl-1.2.2
- old
+ new
@@ -5,18 +5,18 @@
end
describe Style::Name do
- it { should be_delimiter_contextually_precedes_last }
+ it { is_expected.to be_delimiter_contextually_precedes_last }
[:never, :always, :contextually].each do |setting|
setter = "delimiter_#{setting}_precedes_last!"
predicate = "delimiter_#{setting}_precedes_last?"
describe "##{setter}" do
it 'sets the delimiter precedes last option accordingly' do
- subject.send(setter).send(predicate).should == true
+ expect(subject.send(setter).send(predicate)).to eq(true)
end
end
end
end
\ No newline at end of file