Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created June 3, 2018 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chelseatroy/61e31c346638ca6b1ec1d78b823eb81b to your computer and use it in GitHub Desktop.
Save chelseatroy/61e31c346638ca6b1ec1d78b823eb81b to your computer and use it in GitHub Desktop.
Switching Data Sources: Testing Method Equivalence
require 'rails_helper'
RSpec.describe Services::ReceiptDataSource do
describe "equivalency" do
it "has all the methods present in the repository library" do
expect(
Repositories::ReceiptDataSource.instance_methods - Services::ReceiptDataSource.instance_methods
).to be_empty
end
end
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment