~tim/wuparty

0d1f539c89e0e1d94b2642d2a4a2867813a15d43 — Tim Morgan 8 years ago a69a2d9 + 6e341c4
Merge branch 'master' of git://github.com/tigerlily/wuparty
2 files changed, 5 insertions(+), 0 deletions(-)

M lib/wuparty.rb
M test/wuparty_test.rb
M lib/wuparty.rb => lib/wuparty.rb +1 -0
@@ 210,6 210,7 @@ class WuParty
      @details = options[:details]
    end

    attr_reader :id
    attr_accessor :details
  end


M test/wuparty_test.rb => test/wuparty_test.rb +4 -0
@@ 28,6 28,10 @@ class WuPartyTest < Test::Unit::TestCase
    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)