features/step_definitions/style_steps.rb in csl-1.2.1 vs features/step_definitions/style_steps.rb in csl-1.2.2
- old
+ new
@@ -2,15 +2,15 @@
When /^I load the style from the string$/ do |string|
@csl = CSL::Style.load string
end
Then /^the locale (\d+) should should have (\d+) terms?$/ do |locale, term|
- @csl.locales[locale.to_i - 1].terms.length.should == term.to_i
+ expect(@csl.locales[locale.to_i - 1].terms.length).to eq(term.to_i)
end
Then /^the locale (\d+) (\w+\??) should be "([^"]*)"$/ do |locale, method, expected|
- @csl.locales[locale.to_i - 1].send(method).to_s.should == expected
+ expect(@csl.locales[locale.to_i - 1].send(method).to_s).to eq(expected)
end
Then /^the style should have (\d+) contributors$/ do |num|
- @csl.info.contributors.length.should == num.to_i
+ expect(@csl.info.contributors.length).to eq(num.to_i)
end