Permalink
Browse files

Whitespace begone

  • Loading branch information...
1 parent a5427ab commit af85687487e7e603fd73110d5132f95e8b84d732 @jnicklas jnicklas committed Mar 26, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/capybara/spec/session/node_spec.rb
@@ -76,18 +76,18 @@
@session.first('//input').set('')
@session.first('//input').value.should == ''
end
-
+
it "should not set if the text field is readonly" do
@session.first('//input[@readonly]').value.should == 'should not change'
@session.first('//input[@readonly]').set('changed')
@session.first('//input[@readonly]').value.should == 'should not change'
end
-
+
it "should not set if the textarea is readonly" do
@session.first('//textarea[@readonly]').value.should == 'textarea should not change'
@session.first('//textarea[@readonly]').set('changed')
@session.first('//textarea[@readonly]').value.should == 'textarea should not change'
- end
+ end
end
describe "#tag_name" do
@@ -104,13 +104,13 @@
@session.find('//input[@id="customer_name"]').should be_disabled
@session.find('//input[@id="customer_email"]').should_not be_disabled
end
-
+
it "should see disabled options as disabled" do
@session.visit('/form')
@session.find('//select[@id="form_title"]/option[1]').should_not be_disabled
@session.find('//select[@id="form_title"]/option[@disabled]').should be_disabled
end
-
+
it "should see enabled options in disabled select as disabled" do
@session.visit('/form')
@session.find('//select[@id="form_disabled_select"]/option').should be_disabled
@@ -175,8 +175,8 @@
@session.find('//div[contains(., "Dropped!")]').should_not be_nil
end
end
-
- describe '#hover', :requires => [:hover] do
+
+ describe '#hover', :requires => [:hover] do
it "should allow hovering on an element" do
pending "Selenium with firefox doesn't currently work with this (selenium with chrome does)" if @session.respond_to?(:mode) && @session.mode == :selenium && @session.driver.browser.browser == :firefox
@session.visit('/with_hover')

0 comments on commit af85687

Please sign in to comment.