Module: Ghaki::CannedInput::AcceptsDataFrom
- Defined in:
- lib/ghaki/canned_input/accepts_data_from.rb
Instance Method Summary collapse
- #it_should_accept_data_from(data, name, &block) ⇒ Object
- #it_should_reject_data_from(data, name, &block) ⇒ Object
Instance Method Details
#it_should_accept_data_from(data, name, &block) ⇒ Object
6 7 8 |
# File 'lib/ghaki/canned_input/accepts_data_from.rb', line 6 def it_should_accept_data_from data, name, &block _should_accept_with 'should accept', true, data, name, &block end |
#it_should_reject_data_from(data, name, &block) ⇒ Object
10 11 12 |
# File 'lib/ghaki/canned_input/accepts_data_from.rb', line 10 def it_should_reject_data_from data, name, &block _should_accept_with 'should reject', false, data, name, &block end |