Permalink
Browse files

Merge branch 'master' of git://github.com/tigerlily/wuparty

  • Loading branch information...
2 parents a69a2d9 + 6e341c4 commit 0d1f539c89e0e1d94b2642d2a4a2867813a15d43 @seven1m committed Oct 16, 2012
Showing with 5 additions and 0 deletions.
  1. +1 −0 lib/wuparty.rb
  2. +4 −0 test/wuparty_test.rb
View
@@ -210,6 +210,7 @@ def initialize(id, options)
@details = options[:details]
end
+ attr_reader :id
attr_accessor :details
end
@@ -28,6 +28,10 @@ def test_form
assert_equal 'Test Form', form['Name']
end
+ def test_get_form_id
+ assert_equal 1, @wufoo.forms.select {|f| f.id == 'test-form'}.length
+ end
+
def test_form_by_hash
hash = @wufoo.form(@form_id)['Hash']
assert @wufoo.form(hash)

0 comments on commit 0d1f539

Please sign in to comment.