page-object-pal 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # PageObjectPal
2
+ [![Gem Version](https://badge.fury.io/rb/page-object-pal.png)](http://badge.fury.io/rb/page-object-pal)
2
3
 
3
4
  PageObjectPal keeps an eye on your [page-object](https://github.com/cheezy/page-object) classes, alerting you to outdated element information. Unit test your page classes with PageObjectPal, and don't wait for your acceptance tests to fail!
4
5
 
@@ -39,7 +39,7 @@ module PageObjectPal
39
39
  "forking the project at http://github.com/jdenen/page-object-pal."
40
40
  end
41
41
 
42
- raise PageObjectOutdated, "Could not identify '#{html_to_dsl(tag)}' where :#{prop} == '#{prop_val}'" if failure? match
42
+ raise PageObjectInvalid, "Could not identify '#{html_to_dsl(tag)}' where :#{prop} == '#{prop_val}'" if failure? match
43
43
  end
44
44
  end
45
45
 
@@ -1,5 +1,5 @@
1
1
  module PageObjectPal
2
- class PageObjectOutdated < StandardError; end
2
+ class PageObjectInvalid < StandardError; end
3
3
  class AnchorError < StandardError; end
4
4
  class SupportError < StandardError; end
5
5
  class CannotFindClass < StandardError; end
@@ -1,3 +1,3 @@
1
1
  module PageObjectPal
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -9,14 +9,14 @@ describe PageObjectPal, :private => true do
9
9
 
10
10
  context "using invalid identification" do
11
11
  context "HTML selectors" do
12
- Then { expect { PageObjectPal.scrub_source('a', {:class => 'invalid-class'}, source) }.to raise_error(PageObjectPal::PageObjectOutdated) }
13
- Then { expect { PageObjectPal.scrub_source('a', {:id => 'invalid-id'}, source) }.to raise_error(PageObjectPal::PageObjectOutdated) }
14
- Then { expect { PageObjectPal.scrub_source('a', {:index => 9000}, source) }.to raise_error(PageObjectPal::PageObjectOutdated) }
15
- Then { expect { PageObjectPal.scrub_source('a', {:text => 'xxcvxddvndxm'}, source) }.to raise_error(PageObjectPal::PageObjectOutdated) }
12
+ Then { expect { PageObjectPal.scrub_source('a', {:class => 'invalid-class'}, source) }.to raise_error(PageObjectPal::PageObjectInvalid) }
13
+ Then { expect { PageObjectPal.scrub_source('a', {:id => 'invalid-id'}, source) }.to raise_error(PageObjectPal::PageObjectInvalid) }
14
+ Then { expect { PageObjectPal.scrub_source('a', {:index => 9000}, source) }.to raise_error(PageObjectPal::PageObjectInvalid) }
15
+ Then { expect { PageObjectPal.scrub_source('a', {:text => 'xxcvxddvndxm'}, source) }.to raise_error(PageObjectPal::PageObjectInvalid) }
16
16
  end
17
17
 
18
18
  context "Xpath selector" do
19
- Then { expect { PageObjectPal.scrub_source('a', {:xpath => "//a[@id='invalid-id']"}, source) }.to raise_error(PageObjectPal::PageObjectOutdated) }
19
+ Then { expect { PageObjectPal.scrub_source('a', {:xpath => "//a[@id='invalid-id']"}, source) }.to raise_error(PageObjectPal::PageObjectInvalid) }
20
20
  end
21
21
  end
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page-object-pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  segments:
149
149
  - 0
150
- hash: 2495704330875555377
150
+ hash: -2792159632047190795
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements:
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  segments:
158
158
  - 0
159
- hash: 2495704330875555377
159
+ hash: -2792159632047190795
160
160
  requirements: []
161
161
  rubyforge_project:
162
162
  rubygems_version: 1.8.25