Created
June 3, 2018 04:24
-
-
Save chelseatroy/61e31c346638ca6b1ec1d78b823eb81b to your computer and use it in GitHub Desktop.
Switching Data Sources: Testing Method Equivalence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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