Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Created February 20, 2013 10:58
Show Gist options
  • Save ukstudio/4994774 to your computer and use it in GitHub Desktop.
Save ukstudio/4994774 to your computer and use it in GitHub Desktop.
describe User do
describe '#nanrakano_method' do
subject { described_class.new.nanrakano_method(args) }
context 'context a'
context 'context b'
# many many context ...
context 'context z' do
let(:args) { 'args' }
it { should be_true}
# what is subject?
end
end
end
@moro
Copy link

moro commented Feb 20, 2013

カスタム:tea:でパラメタライズドテストがいいですよ

@ukstudio
Copy link
Author

おっとコメント見逃してました。なるほど、その辺の機能あまり使ってなかったんですがちょっと意識して使ってみます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment