spec/analytical/google_spec.rb in analytical-0.3.0 vs spec/analytical/google_spec.rb in analytical-0.5.0

- old
+ new

@@ -27,12 +27,12 @@ end end describe '#init_javascript' do it 'should return the init javascript' do @api = Analytical::Google::Api.new @parent, {:key=>'abcdef'} - @api.init_javascript[:head].should be_nil - @api.init_javascript[:body_prepend].should =~ /google-analytics.com\/ga.js/ - @api.init_javascript[:body_prepend].should =~ /abcdef/ - @api.init_javascript[:body_append].should be_nil + @api.init_javascript(:head).should == '' + @api.init_javascript(:body_prepend).should =~ /google-analytics.com\/ga.js/ + @api.init_javascript(:body_prepend).should =~ /abcdef/ + @api.init_javascript(:body_append).should == '' end end end