Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 0d1f539c89e0e1d94b2642d2a4a2867813a15d43 2 parents a69a2d9 + 6e341c4
Tim Morgan authored October 15, 2012
1  lib/wuparty.rb
@@ -210,6 +210,7 @@ def initialize(id, options)
210 210
       @details = options[:details]
211 211
     end
212 212
 
  213
+    attr_reader :id
213 214
     attr_accessor :details
214 215
   end
215 216
 
4  test/wuparty_test.rb
@@ -28,6 +28,10 @@ def test_form
28 28
     assert_equal 'Test Form', form['Name']
29 29
   end
30 30
 
  31
+  def test_get_form_id
  32
+    assert_equal 1, @wufoo.forms.select {|f| f.id == 'test-form'}.length
  33
+  end
  34
+
31 35
   def test_form_by_hash
32 36
     hash = @wufoo.form(@form_id)['Hash']
33 37
     assert @wufoo.form(hash)

0 notes on commit 0d1f539

Please sign in to comment.
Something went wrong with that request. Please try again.