Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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