GithubHelp home page GithubHelp logo

elmassimo / capybara-compose Goto Github PK

View Code? Open in Web Editor NEW
32.0 4.0 1.0 677 KB

✅ Easily write fluent integration tests with Capybara in Ruby

Home Page: https://capybara-test-helpers.netlify.app/

License: MIT License

Ruby 99.06% Shell 0.25% JavaScript 0.69%
capybara ruby integration-tests rails testing rspec cucumber

capybara-compose's Introduction

Projects 🛠

My current focus is development experience, and how it can help us achieve increased productivity.

Vite.js

Vite.js with Ruby

Vue.js

  • vuex-stores: 🗄 Store objects for Vuex, a simple and more fluid API for state-management.

Rails

  • js_from_routes: 🛣️ Generate path helpers and API methods from your Rails routes
  • oj_serializers: ⚡️ Faster JSON serialization for Ruby on Rails. Easily migrate away from Active Model Serializers
  • types_from_serializers: ✅ Generate TypeScript interfaces from your JSON serializers
  • presenter_rails: 🔭 Expose your view models in a convenient way
  • queryable: ❔ Gives your queries a home and avoid tucking scopes inside your models
  • resourcerer: ✨ Works like magic to dry up your controllers
  • request_store_rails: 📦 Per-request global storage for Rails prepared for multi-threaded apps

Ruby

  • better_settings: ⚙ Settings for Ruby apps – fast, immutable, better
  • capybara-compose: ✅ Easily write fluent integration tests with Capybara
  • i18n_multitenant: 🌎 Provides a convenient way to use tenant-specific translations
  • pakiderm: 🐘 Pakiderm will never forget the return value

Demos / Templates / App Starters

Podcasts & Talks 📣

Writing ✍️

Here are some articles I've written:

capybara-compose's People

Contributors

dependabot[bot] avatar elmassimo 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

Watchers

 avatar  avatar  avatar  avatar

Forkers

tastypi

capybara-compose's Issues

Using synchronize_expectation globally

Hi.
Just started using your gem but can't really get how can I use synchronize_expectation globally in my tests.
After defining base test helper like so:

class BaseTestHelper < Capybara::TestHelper
end

and verifying that this class indeed defines synchronize_expectation method I've tried using it in my globally included module like so:

module GlobalTestHelper
  extend ActiveSupport::Concern

  included do
    use_test_helpers(:base)
  end
end

But when calling synchronize_expectation I'm still getting undefined method synchronize_expectation for #<RSpec::ExampleGroups::Dashboard::NewUser:0x00007f99afaa5cd0>.
Even if I delegate the method to base with delegate :synchronize_expectation, to: :base inside of included block, I'm still getting protected method synchronize_expectation called for #<BaseTestHelper 70144865172940>. So it seems to me that synchronize_expectation can only be called without explicit receiver, hence only inside of subclasses of Capybara::TestHelper.
Any ideas what I'm missing? The example does not include this use case as far as I've noticed

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.