sixarm_ruby_minitest_assert_equal_via_send

SixArm.com → Ruby → Minitest assert equal via send

https://github.com/sixarm/sixarm_ruby_minitest_assert_equal_via_send

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary
Last synced: 8 months ago · JSON representation ·

Repository

SixArm.com → Ruby → Minitest assert equal via send

Basic Info
  • Host: GitHub
  • Owner: SixArm
  • License: other
  • Language: Ruby
  • Default Branch: main
  • Size: 120 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 8 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Codeowners

README.md

README

SixArm.com → Ruby → minitest
assertequalvia_send assert & expect

Gem Version Build Status Code Climate

Introduction

Minitest extension that compares two objects via the #send method.

  • If exp.send(args) is equal to act.send(args), then the test passes.

Assert:

  • assertequalviasend(exp, act, [:methodname, param_1, param2], msg)

  • refuteequalviasend(exp, act, [:methodname, param_1, param2], msg)

Spec:

  • expect(act).mustequalviasend(exp, [:methodname, param_1, param2], msg)

  • expect(act).wontequalviasend(exp, [:methodname, param_1, param2], msg)

Based on Minitest.

For docs go to http://sixarm.com/sixarm_ruby_minitest_assert_equal_via_send/doc

Want to help? We're happy to get pull requests.

Install

Gem

To install this gem in your shell or terminal:

gem install sixarm_ruby_minitest_assert_equal_via_send

Gemfile

To add this gem to your Gemfile:

gem 'sixarm_ruby_minitest_assert_equal_via_send'

Require

To require the gem in your code:

require 'sixarm_ruby_minitest_assert_equal_via_send'

Examples

Example setup

@exp = [:alpha, :bravo]
@act = [:alpha, :charlie]

Example minitest assert:

def test_me
  assert_equal_via_send(@exp, @act, [:has_key?, :alpha])
end

Example minitest spec:

it "works" do
  expect(@act).must_equal_via_send(@exp, [:has_key?, :alpha])
end

Owner

  • Name: SixArm
  • Login: SixArm
  • Kind: organization
  • Email: sixarm@sixarm.com
  • Location: San Francisco

SixArm Software

Citation (CITATION.cff)

cff-version: 1.2.0
title: SixArm.com → Ruby → minitest<br> assert_equal_via_send assert & expect
message: >-
  If you use this work and you want to cite it,
  then you can use the metadata from this file.
type: software
authors:
  - given-names: Joel Parker
    family-names: Henderson
    email: joel@joelparkerhenderson.com
    affiliation: joelparkerhenderson.com
    orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
  - type: url
    value: 'https://github.com/SixArm/sixarm_ruby_minitest_assert_equal_via_send/'
    description: SixArm.com → Ruby → minitest<br> assert_equal_via_send assert & expect
repository-code: 'https://github.com/SixArm/sixarm_ruby_minitest_assert_equal_via_send/'
abstract: >-
  SixArm.com → Ruby → minitest<br> assert_equal_via_send assert & expect
license: See license file

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 35
  • Total Committers: 1
  • Avg Commits per committer: 35.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Joel Parker Henderson j****l@j****m 35
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels