search for: be_disabled

Displaying 1 result from an estimated 1 matches for "be_disabled".

Did you mean: mce_disabled
2007 Nov 29
3
Stylistic preferences
...be_valid end it "should reject duplicate phone number" do @user.save @user_2 = User.new(valid_sms_attributes) @user_2.should_not be_valid end it "should be possible to disable the number" do @user.save @user.disable_number @user.should be_disabled end end ------------------------ 2) given/yield --------------------------- module GenericSpecHelper def given(thing) yield thing if block_given? thing end end module UserSpecHelper include GenericSpecHelper def valid_sms_attributes(phone_number="12345")...