{"id":15487959,"url":"https://github.com/dblock/email-example-spec","last_synced_at":"2025-09-20T05:32:50.771Z","repository":{"id":29963949,"uuid":"33510795","full_name":"dblock/email-example-spec","owner":"dblock","description":"Integration testing with e-mail examples.","archived":false,"fork":false,"pushed_at":"2015-04-14T21:42:32.000Z","size":164,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-09T20:09:53.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dblock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-06T23:16:19.000Z","updated_at":"2019-08-18T16:42:23.000Z","dependencies_parsed_at":"2022-09-16T07:21:55.393Z","dependency_job_id":null,"html_url":"https://github.com/dblock/email-example-spec","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Femail-example-spec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Femail-example-spec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Femail-example-spec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Femail-example-spec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dblock","download_url":"https://codeload.github.com/dblock/email-example-spec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233566907,"owners_count":18695286,"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-10-02T06:45:07.306Z","updated_at":"2025-09-20T05:32:45.472Z","avatar_url":"https://github.com/dblock.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"EmailExampleSpec\n================\n\n[![Build Status](https://travis-ci.org/dblock/email-example-spec.png)](https://travis-ci.org/dblock/email-example-spec)\n[![Gem Version](https://badge.fury.io/rb/email-example-spec.svg)](http://badge.fury.io/rb/email-example-spec)\n\nVCR for e-mail templates.\n\n## Installation\n\n```ruby\ngem 'email-example-spec'\n```\n\n## Configuration\n\nConfigure the root directory of your mail fixtures in *spec/spec_helper.rb*.\n\n```ruby\nEmailExampleSpec.configure do |config|\n  config.record = true # record new e-mails, don't commit this!\n  config.fixture_path = File.join(Rails.root, 'spec/support/fixtures/emails')\nend\n```\n\n## Usage\n\n```ruby\ndescribe WelcomeMailer do\n  let(:user) { User.new }\n  subject do\n    WelcomeMailer.welcome(user)\n  end\n  it 'works' do\n    expect(subject).to match_email_example_in 'welcome_mail.txt'\n  end\nend\n```\n\n## Details\n\nThis gem patches e-mail dates, message IDs and content-type boundaries and exports e-mail contents, including headers, into a file that can be read in subsequent runs. It essentially provides integration testing for e-mail templates.\n\n## Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md).\n\n## Copyright and License\n\nCopyright (c) 2015, Daniel Doubrovkine, Artsy and [Contributors](CHANGELOG.md).\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Femail-example-spec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdblock%2Femail-example-spec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Femail-example-spec/lists"}