Sha256: 8ed28e974959206880ef84dcb9149bbbdc58a0e3a23e7c8b654a4cb989ac912a
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
require "spec_helper" RSpec.describe UniformNotifier::JavascriptAlert do it "should not notify message" do expect(UniformNotifier::JavascriptAlert.inline_notify(:title => "javascript alert!")).to be_nil end it "should notify message" do UniformNotifier.alert = true expect(UniformNotifier::JavascriptAlert.inline_notify(:title => "javascript alert!")).to eq <<-CODE <script type="text/javascript">/*<![CDATA[*/ alert( "javascript alert!" ); /*]]>*/</script> CODE end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uniform_notifier-1.11.0 | spec/uniform_notifier/javascript_alert_spec.rb |
uniform_notifier-1.10.0 | spec/uniform_notifier/javascript_alert_spec.rb |