Giter Site home page Giter Site logo

jonreid / mockuialertcontroller Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 13.0 4.77 MB

Mock alerts and action sheets for iOS unit tests

License: Other

Objective-C 71.31% Ruby 1.92% Swift 25.35% C++ 0.06% Shell 1.36%
mocking objective-c swift uikit

mockuialertcontroller's Introduction

mockuialertcontroller's People

Contributors

batesyuk avatar donnellyk avatar foulkesjohn avatar jonreid avatar readmecritic avatar rebe1one avatar yas375 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mockuialertcontroller's Issues

Fill alert text fields

Very nice library !

It would be nice to have the ability to fill the UIAlertController text fields.

Adding to swift project

I have installed the pod file to my test target, adding a bridging header and set its path in the build settings but still get unresolved identifier when trying to instantiate a QCOMockAlertVerifier. Please if possible provide step by step instructions of how to implement with swift. Thanks.

New release?

It'd be great if a new tag was created and it was published to CocoaPods Specs repo as well ๐Ÿ’ฏ

Issue with Carthage

I am trying to add "MockUIAlertController" to my project via carthage. But I am getting error like-
"Dependency "MockUIAlertController" has no shared framework schemes".
Please resolve this issue.

Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior

When running a test that shows an UIAlertController, I get:

Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<UIAlertController: 0x7fb245490b40>)

I know it's probably not an issue of MockUIAlertController (I was mocking myself before and getting the same error), but I wanted to know what would be your approach.

Here's the relevant code:

UIViewController *viewController = [UIViewController new];
NSURL *URL = [NSURL URLWithString:@"https://www.apple.com"];

QCOMockAlertVerifier *alertVerifier = [[QCOMockAlertVerifier alloc] init];

WFLExternalLinkPresenter *presenter = [WFLExternalLinkPresenterWithoutSafari new];
[presenter openURL:URL withTitle:@"Apple" presentingViewController:viewController];

expect(alertVerifier.title).to.equal(@"Apple");

Any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.