Skip to content

Instantly share code, notes, and snippets.

@n0nick
Created January 28, 2014 13:17
Show Gist options
  • Save n0nick/8667422 to your computer and use it in GitHub Desktop.
Save n0nick/8667422 to your computer and use it in GitHub Desktop.
it "passes default argument along to t" do
subject.stub(:t).with('my_key', default: 'my_default').and_return('abc')
subject.safe_t('my_key', default: 'my_default')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment