Skip to content

Commit

Permalink
Fix bug for filling forms with Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed May 21, 2016
1 parent 49a28e0 commit 19b92e0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### 0.5.6 (2016-05-21)

* add instance method for page_url on PageObject

### 0.5.5 (2016-04-22)

* fix bug for filling forms with Hash

### 0.5.4 (2016-04-20)

* don't specify activesupport version

### 0.5.3 (2016-03-03)

* only attempt fill forms with values defined in model instance
Expand Down
6 changes: 5 additions & 1 deletion lib/watir_drops/page_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ class << self
attr_writer :element_list

def page_url
define_method("page_url") do |*args|
yield(*args)
end

define_method("goto") do |*args|
browser.goto yield(*args)
browser.goto page_url(*args)
end
end

Expand Down
2 changes: 1 addition & 1 deletion watir_drops.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = 'watir_drops'
spec.version = '0.5.5'
spec.version = '0.5.6'
spec.authors = ['Titus Fortner']
spec.email = ['titusfortner@gmail.com']

Expand Down

0 comments on commit 19b92e0

Please sign in to comment.