Sha256: deef64c8b61285cd9a285c6b397bcb85662a7ed85f94497842ff451ba035f1f3

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

module Shortcuts::Helpers
  require 'shortcuts/helpers/db'
  include Shortcuts::Helpers::Db

  def it_should
    @not = false
    @messages = []
    self
  end

  def not
    @not = true
    @messages << 'not'
    self
  end

  def message(last_message)
    (@messages << last_message).join ' '
  end
end

ActiveSupport::TestCase.extend Shortcuts::Helpers

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shortcuts-0.0.3 lib/shortcuts/helpers.rb
shortcuts-0.0.2 lib/shortcuts/helpers.rb