spec/title_anchor_spec.rb in tdiary-contrib-4.0.2.1 vs spec/title_anchor_spec.rb in tdiary-contrib-4.0.3
- old
+ new
@@ -13,21 +13,21 @@
describe "in day mode" do
before do
@plugin = setup_title_anchor_plugin('day')
end
- it { @plugin.title_anchor.should == expected_html_title_in_day(
+ it { expect(@plugin.title_anchor).to eq(expected_html_title_in_day(
:index => '',
- :html_title => 'HsbtDiary')}
+ :html_title => 'HsbtDiary'))}
end
describe "in latest mode" do
before do
@plugin = setup_title_anchor_plugin('latest')
end
- it { @plugin.title_anchor.should == expected_html_title_in_latest(
- :html_title => 'HsbtDiary')}
+ it { expect(@plugin.title_anchor).to eq(expected_html_title_in_latest(
+ :html_title => 'HsbtDiary'))}
end
def expected_html_title_in_day(options)
expected = %{<h1><a href="#{options[:index]}">#{options[:html_title]}</a></h1>}
end