> @@ -0,0 +1,15 @@
> +require File.expand_path('watirspec/spec_helper', File.dirname(__FILE__))
> +
> +describe Watir::Input do
> +
> + before do
> + browser.goto WatirSpec.url_for("html5_input_types.html", :needs_server
> => true)
> + end
> +
> + describe "#type" do
> + it "returns an email type" do
> + t = browser.input(:name => "email").type
No need to introduce that local variable here. Just use single line:
```ruby
browser.input(:name => "email").type.should == "email"
```
Also, when you're only asserting this then why did you also add `date` and
`number` types into the html?
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/pull/218/files#r6110089
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development