ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'

class Test::Unit::TestCase
  .
  .
  .
  # Add more helper methods to be used by all tests here...
  
  # Asercja znacznika form
  def assert_form_tag(action)
    assert_tag "form", :attributes => { :action => action,
                                        :method => "post" }
  end
  
  # Asercja przycisku przesyania z opcjonaln etykiet
  def assert_submit_button(button_label = nil)
    if button_label
      assert_tag "input", :attributes => { :type => "submit",
                                           :value => button_label }
    else
      assert_tag "input", :attributes => { :type => "submit" } 
    end
  end
end

