search for: shirt_size

Displaying 2 results from an estimated 2 matches for "shirt_size".

Did you mean: shift_size
2007 Apr 19
5
Best practice thoughts: Model helpers, mocks
...t path here? (If so, I have a text mate snippet that creates this stuff pretty quickly I can share) module RenewalSpecHelper def min_renewal_attribs { :member_id => 1, :order_id => 1, :date_renewed => Date.new(2007, 1, 1), :membership_type_id => 1, :shirt_size => ''M'', :amount_due => ''5000'' } end def min_renewal Renewal.new :attributes => min_renewal_attribs end def mock_renewal(stubs = {}) obj = mock_model(Renewal, { :member_id => 1, :date_renewed => Date.new(2007,...
2014 Feb 11
0
Cucumber test question
...hould send an email notification Steps: Given(/^there is at least (\d+) staff info record$/) do |arg1| assert_difference('StaffInfo.count', 1) do @staff_info = FactoryGirl.create :staff_info end end When(/^the shirt size field is empty$/) do assert @staff_info.update_attribute(:shirt_size, nil) end When(/^the shirt size check is run$/) do StaffInfo.check_empty_shirt_fields end Then(/^the system should send an email notification$/) do pending # express the regexp above with the code you wish you had end Model: class StaffInfo < ActiveRecord::Base belongs_to :person sco...