Unit testing : ViewController has no segue with identifier : “segue id”

I want to test below method :

- (void)myMethod
    self.contact = nil;
    [self performSegueWithIdentifier:@"segue id" sender:self];

This is what I do in test class :

- (void)testMyMethod
    // Call method to test
    [testClass myMethod];

    // Tests
    GHAssertNil(testClass.contact, @"contact should be nil.");

Running the test gives me error :

Reason : Receiver (<RS_MainViewController:0x126b6330>) has no segue with identifier 'segue id'

Why I get this error and what is the solution?


Need Your Help

issue with capistrano and rake using ext/multistage and rake vs 0.9.2 on the deployed server

ruby-on-rails capistrano

I want to bring up a staging environment on a server. I am currenly using capistrano to deploy.

Delete row from DB table using cron job

mysql cron

I'm wondering how can I delete a row from given database table using cron job, can I do that directly using the cron job command line in my cPanel?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.