Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

getting ready for rspec 3

  • Loading branch information...
commit b9bd99c2efb1a45804e5786fb1e568e3f961e3f1 1 parent 05ff5a6
@cheezy authored
View
2  spec/page-object/elements/select_list_spec.rb
@@ -126,7 +126,7 @@
sel_list.should_receive(:find_elements).and_return(opts)
opts[0].should_receive(:selected?).twice.and_return(true)
opts[0].should_receive(:text).and_return('blah')
- selenium_sel_list.selected?('blah').should be_true
+ selenium_sel_list.selected?('blah').should be true
end
it "should be able to clear selected options" do
View
2  spec/page-object/elements/selenium_element_spec.rb
@@ -58,7 +58,7 @@
it "should know how to retrieve the value of an attribute" do
@selenium_driver.should_receive(:attribute).and_return(true)
- @selenium_element.attribute('readonly').should be_true
+ @selenium_element.attribute('readonly').should be true
end
it "should be clickable" do
View
2  spec/page-object/elements/table_cell_spec.rb
@@ -15,7 +15,7 @@
it "should always be enabled" do
table_cell_element = double('table_cell_element')
table_cell = PageObject::Elements::TableCell.new(table_cell_element, :platform => :selenium_webdriver)
- table_cell.enabled?.should be_true
+ table_cell.enabled?.should be true
end
end
end
View
2  spec/page-object/elements/watir_element_spec.rb
@@ -56,7 +56,7 @@
it "should know how to retrieve the value of an attribute" do
watir_driver.stub(:attribute_value).and_return(true)
watir_driver.stub(:attribute).and_return(true)
- watir_element.attribute("readonly").should be_true
+ watir_element.attribute("readonly").should be true
end
it "should be clickable" do
View
4 spec/page-object/page-object_spec.rb
@@ -123,7 +123,7 @@ def initialize_page
end
@page = CallbackPage.new(watir_browser)
- @page.initialize_page_called.should be_true
+ @page.initialize_page_called.should be true
end
it "should call initialize_accessors if it exists" do
@@ -137,7 +137,7 @@ def initialize_accessors
end
@page = CallbackPage.new(watir_browser)
- @page.initialize_accessors_called.should be_true
+ @page.initialize_accessors_called.should be true
end
it "should call initialize_accessors before initialize_page if both exist" do
View
2  spec/page-object/page_factory_spec.rb
@@ -50,7 +50,7 @@ class TestWorld < WorldSuper
class NoPO
end
@world.on(NoPO)
- @world.super_called.should be_true
+ @world.super_called.should be true
end
it "should create a new page object and execute a block" do
View
2  spec/page-object/platforms/selenium_webdriver/selenium_page_object_spec.rb
@@ -49,7 +49,7 @@ class SeleniumTestPageObject
it "should know it is not exist" do
selenium_browser.should_receive(:find_element).twice.and_raise(Selenium::WebDriver::Error::NoSuchElementError)
page = SeleniumTestPageObject.new(selenium_browser)
- page.link_element(:text => 'blah').element.exists?.should be_false
+ page.link_element(:text => 'blah').element.exists?.should be false
end
it "should know it is not visible" do
View
2  spec/page-object/selenium_accessors_spec.rb
@@ -271,7 +271,7 @@ class SeleniumBlockPageObject
it "should know if a check box element is selected" do
selenium_browser.should_receive(:find_element).and_return(selenium_browser)
selenium_browser.should_receive(:selected?).and_return(true)
- selenium_page_object.active_checked?.should be_true
+ selenium_page_object.active_checked?.should be true
end
it "should retrieve a checkbox element" do
View
2  spec/page-object/watir_accessors_spec.rb
@@ -580,7 +580,7 @@ def mock_driver_for(tag)
it "should know if a check box element is selected" do
watir_browser.should_receive(:checkbox).and_return(watir_browser)
watir_browser.should_receive(:set?).and_return(true)
- watir_page_object.active_checked?.should be_true
+ watir_page_object.active_checked?.should be true
end
it "should retrieve a checkbox element" do
Please sign in to comment.
Something went wrong with that request. Please try again.