Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Created March 15, 2012 20:34
Show Gist options
  • Save garybernhardt/2046717 to your computer and use it in GitHub Desktop.
Save garybernhardt/2046717 to your computer and use it in GitHub Desktop.
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