Sha256: 3d944bf2b319f2b65ddfe74ce75d789d7f512caff3c8418a6e12e37230dbb890

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

module Erb::RailsForm
  module ContentMatchers
    module LinkHelpers
      def self.link_methods       
        [ :button_to, :link_to, :mail_to ]
      end

      link_methods.each do |name|
        class_eval %{
          def have_#{name} args
            have_form_call :collection_select, :args => args
          end
        }
      end

      def have_submit_button 
        HaveDotCall.new(:submit)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
forms-spec-0.1.2 lib/forms-spec/erb/matchers/rails_view/helpers/links.rb
forms-spec-0.1.1 lib/forms-spec/erb/matchers/rails_view/helpers/links.rb
forms-spec-0.1.0 lib/forms-spec/erb/matchers/rails_view/helpers/links.rb
code-spec-0.1.3 lib/code_spec/erb/matchers/rails_view/helpers/links.rb