Created
March 15, 2012 20:34
-
-
Save garybernhardt/2046717 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
describe 'a' do | |
it "raises an error when no source is found for an argument" do | |
klass = Class.new { def f(unknown_argument); end } | |
expect do | |
injector.call(klass.new.method(:f)) | |
end.to raise_error(Syringe::UnknownInjectable) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment