GithubHelp home page GithubHelp logo

aygabtu's People

Contributors

schnittchen avatar sphinxc0re avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

Forkers

dhoelzgen

aygabtu's Issues

allow RSpec metadata for contexts

Use case is probably focus: true most of the time.

Maybe a scope method is the right way here, but that would require creating an artificial context when a scope method is used with an action, and not with a block.

Testing remaining routes multiple times

Due to the internal semantics of remaining, it is not possible to test remaining routes multiple times, i.e. in a desktop and mobile version.

remaining do
  visit
  visit_with(mobile_version: true)
end

When visiting the second (mobile) version, the route was already removed from aygabtu_matching_routes and thus no matching routes is found at runtime.

remaining.visit fails if no actions/routes are remaining

I had the problem that i run in an

Failure/Error: remaining.static_routes.visit
     RuntimeError:
       No matching route (action was: :visit, diagnostics: #<Aygabtu scope (remaining_at: CP 36, dynamic: false)>

error - took me a while to figure out that i need to wrap it in a

aygabtu_matching_routes(remaining).any?

my expectation was that it would be handeld by the gem so i have nothing to do with it...if there are no actions left to visit it should just skip the line, as expected when i call a .each on an empty array.

p.s.: what is CP?

scope for "no (further) segments missing"

An idea for another scope method, which matches routes which have no further (subtracting visiting_with params) url segments missing, something like:

requiring(:id).visiting_with(id: 5).visitable.visit

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.