spec/google_analytics_spec.rb in tdiary-contrib-4.0.2.1 vs spec/google_analytics_spec.rb in tdiary-contrib-4.0.3
- old
+ new
@@ -14,32 +14,32 @@
@plugin = setup_google_analytics_plugin('53836-1', 'latest')
end
it "for footer" do
snippet = @plugin.footer_proc
- snippet.should == expected_html_footer_snippet
+ expect(snippet).to eq(expected_html_footer_snippet)
end
end
describe "should render javascript" do
before do
@plugin = setup_google_analytics_plugin('53836-1', 'conf')
end
it "for footer" do
snippet = @plugin.footer_proc
- snippet.should be_empty
+ expect(snippet).to be_empty
end
end
describe "should not render when profile_id is empty" do
before do
@plugin = setup_google_analytics_plugin(nil, 'latest')
end
it "for footer" do
snippet = @plugin.footer_proc
- snippet.should be_empty
+ expect(snippet).to be_empty
end
end
def expected_html_footer_snippet
expected = <<-SCRIPT