Displaying 1 result from an estimated 1 matches for "valid_sms_attributes".
2007 Nov 29
3
Stylistic preferences
What are people''s opinions on which of these two styles is better to
use?
1) before
---------------------------
module UserSpecHelper
include GenericSpecHelper
def valid_sms_attributes(phone_number="12345")
{ :phone_number => phone_number }
end
end
describe User, "with phone number" do
include UserSpecHelper
before(:each) do
@user = User.new(valid_sms_attributes)
end
it "should be valid" do
@user.should be_valid...