-
-
Save siassaj/ef72b4433db8e245bf9f0dde19a82896 to your computer and use it in GitHub Desktop.
This file contains 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_relative "./my_resource_spec/shared.rb" | |
RSpec.describe MyResource do | |
describe "#a_method" do | |
include_context "with shared foo and bar", lambda { | |
it "is great" do | |
expect(my_resource.a_method).to eq('is great') | |
end | |
} | |
end | |
end | |
### | |
### Result | |
# MyResource | |
# #a_method | |
# with shared foo and bar | |
# is great |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment