This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void)setName:(NSString*)name | |
| { | |
| self.name = name; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var activitiesController = [[ActivitiesController alloc] initWithCibName:@"ActivitiesController" bundle:nil]; | |
| [[activitiesController view] setFrame:[detailView bounds]]; | |
| [detailView addSubview:[activitiesController view]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dec 30 14:00:08 localhost kernel[0]: Darwin Kernel Version 10.5.0: Fri Nov 5 23:19:13 PDT 2010; root:xnu-1504.9.17~1/RELEASE_X86_64 | |
| Dec 30 14:00:08 localhost kernel[0]: vm_page_bootstrap: 508804 free pages and 15484 wired pages | |
| Dec 30 14:00:08 localhost kernel[0]: kext submap [0xffffff7f80600000 - 0xffffff8000000000], kernel text [0xffffff8000200000 - 0xffffff8000600000] | |
| Dec 30 14:00:08 localhost kernel[0]: standard timeslicing quantum is 10000 us | |
| Dec 30 14:00:08 localhost kernel[0]: mig_table_max_displ = 73 | |
| Dec 30 14:00:08 localhost kernel[0]: AppleACPICPU: ProcessorId=0 LocalApicId=0 Enabled | |
| Dec 30 14:00:08 localhost kernel[0]: AppleACPICPU: ProcessorId=1 LocalApicId=1 Enabled | |
| Dec 30 14:00:08 localhost kernel[0]: AppleACPICPU: ProcessorId=2 LocalApicId=2 Disabled | |
| Dec 30 14:00:08 localhost kernel[0]: AppleACPICPU: ProcessorId=3 LocalApicId=3 Disabled | |
| Dec 30 14:00:08 localhost kernel[0]: calling mpo_policy_init for Quarantine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Cocoa/Cocoa.h> | |
| @interface <#(ClassName *)className#> : NSObject | |
| { | |
| } | |
| + (<#(ClassName *)className#>*)sharedInstance; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| validates_presence_of :name, :on => :create, :message => " can't be blank" | |
| validates_uniqueness_of :name, :on => :create, :message => " already used" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before(:each) do | |
| Account.destroy_all | |
| @account = Factory(:account) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Failure/Error: @account = Factory(:account) | |
| ActiveRecord::RecordInvalid: | |
| Validation failed: Name already used, Name already used |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Factory.sequence :email do |n| | |
| "email#{n}@factory.com" | |
| end | |
| Factory.define :user do |a| | |
| a.email { Factory.next(:email)} | |
| a.password "1234567890" | |
| end |