Sha256: 99d0acd56786143a0a6283d3e6922148e854ae12fc21fe2945a22af0f4f48d68

Contents?: true

Size: 948 Bytes

Versions: 302

Compression:

Stored size: 948 Bytes

Contents

require 'rubygems'
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'minitest/autorun'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'swot'

# Extracted from Rails ActiveSupport::Testing::Assertions
#
# Assert that an expression is not truthy. Passes if <tt>object</tt> is
# +nil+ or +false+. "Truthy" means "considered true in a conditional"
# like <tt>if foo</tt>.
#
#   assert_not nil    # => true
#   assert_not false  # => true
#   assert_not 'foo'  # => Expected "foo" to be nil or false
#
# An error message can be specified.
#
#   assert_not foo, 'foo should be false'
def assert_not(object, message = nil)
  message ||= "Expected #{mu_pp(object)} to be nil or false"
  assert !object, message
end

Version data entries

302 entries across 302 versions & 3 rubygems

Version Path
swot-ruby-1.0.5.20250313 test/helper.rb
swot-ruby-1.0.5.20250303 test/helper.rb
swot-ruby-1.0.5.20250301 test/helper.rb
swot-ruby-1.0.5.20250226 test/helper.rb
swot-ruby-1.0.5.20250225 test/helper.rb
swot-ruby-1.0.5.20250224 test/helper.rb
swot-ruby-1.0.5.20250220 test/helper.rb
swot-ruby-1.0.5.20250215 test/helper.rb
swot-ruby-1.0.5.20250211 test/helper.rb
swot-ruby-1.0.5.20250208 test/helper.rb
swot-ruby-1.0.5.20250206 test/helper.rb
swot-ruby-1.0.5.20250204 test/helper.rb
swot-ruby-1.0.5.20250203 test/helper.rb
swot-ruby-1.0.5.20250202 test/helper.rb
swot-ruby-1.0.5.20250129 test/helper.rb
swot-ruby-1.0.5.20250128 test/helper.rb
swot-ruby-1.0.5.20250126 test/helper.rb
swot-ruby-1.0.5.20250125 test/helper.rb
swot-ruby-1.0.5.20250124 test/helper.rb
swot-ruby-1.0.5.20250122 test/helper.rb