{"id":22980927,"url":"https://github.com/rubyworks/spectroscope","last_synced_at":"2025-04-02T09:41:54.295Z","repository":{"id":2549861,"uuid":"3528060","full_name":"rubyworks/spectroscope","owner":"rubyworks","description":"RSpec style BDD on RubyTest","archived":false,"fork":false,"pushed_at":"2012-02-27T20:16:23.000Z","size":488,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T08:15:42.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyworks.github.com/spectra","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"COPYING.rdoc","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-23T18:01:45.000Z","updated_at":"2013-12-01T17:10:48.000Z","dependencies_parsed_at":"2022-08-06T12:15:36.607Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/spectroscope","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fspectroscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fspectroscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fspectroscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fspectroscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/spectroscope/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246792969,"owners_count":20834921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T01:46:12.106Z","updated_at":"2025-04-02T09:41:54.269Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spectroscope\n\nFreeBSD Copyright (c) 2012 Rubyworks\n\n[Homepage](http://rubyworks.github.com/spectroscope) /\n[Report Issue](http://github.com/rubyworks/spectroscope/issues) /\n[Source Code](http://github.com/rubyworks/spectroscope)\n\n[![Build Status](https://secure.travis-ci.org/rubyworks/spectroscope.png)](http://travis-ci.org/rubyworks/spectroscope)\n\n\n## Description\n\nSpectroscope is an RSpec-style BDD framework that runs on top of the [Ruby Test](http://rubyworks.github.com/rubytest),\nthe Ruby universal test harness. It supports all of RSpec's syntax, with a\nfew exceptions.\n\n\n## Installation\n\n  $ gem install spectroscope\n\n\n## Instruction\n\n### Writing Specifications\n\nSpecifications are written as block of `describe` and `it` definitions.\n\nHere's RSpec classic example:\n\n    describe Order do\n      it \"sums the prices of its line items\" do\n        order = Order.new\n        order.add_entry(LineItem.new(:item =\u003e Item.new(\n          :price =\u003e Money.new(1.11, :USD)\n        )))\n        order.add_entry(LineItem.new(:item =\u003e Item.new(\n          :price =\u003e Money.new(2.22, :USD),\n          :quantity =\u003e 2\n        )))\n        order.total.should eq(Money.new(5.55, :USD))\n      end\n    end\n\nSpectroscope only handle the specification structure, it does not provide an\nassertions system. For that use any of a number of available libraries,\nsuch [Assay-RSpec](http://rubyworks.github.com/assay-rspec) or [AE](http://rubyworks.github.com/ae).\nYou can require these in a helper script, or in Ruby Test configuration (see below).\n\n### Running Specifications\n\nRunning specification is done with the `rubytest` command line utility.\n\n    $ rubytest -Ilib -rae/should spec/*_spec.rb\n\nTo make things simpler, create a `.test` configuration file.\n\n    require 'ae/should'\n\n    Test.run :default do |run|\n      run.files \u003c\u003c 'spec/*_spec.rb'\n    end\n\nThen simply use:\n\n    $ rubytest\n\n\n## Copyrights\n\nCopyright (c) 2012 Rubyworks\n\nSpectroscope is distributable according to the terms of the **FreeBSD** license.\n\nSee COPYING.rdoc for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fspectroscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fspectroscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fspectroscope/lists"}