The recommended additional setup of the spreewald gem, a useful set of cucumber steps, includes adding a file for defining custom selectors which can be used as prose within steps...

...The [disabled] attribute is available for all kinds of fields, but will no longer include the field value in the submitted form data. pointer-events: none still allows keyboard input...

...even if it spans over multiple elements in the HTML. Imagine a page that includes this HTML: Hi! Try to match me. Even though the text is separated by a...

makandra dev
github.com

...seems to be really eager to maintain the library it requires no configuration (just include it to your page), but offers a powerful API it was written to be performant...

makandra Curriculum

...If you are using terminator, bin/term is the easiest way to to achieve this. Include the byebug gem in your Gemfile. This provides debugging for your app.

If you need to use safe_join() in a model, you need to include ActionView::Helpers::OutputSafetyHelper. Rails 2 Roll a custom join method that is aware of Rails...

Rails default config uses the ActiveSupport::Cache::NullStore and disables controller caching for all environments except production: config.action_controller.perform_caching = false...

For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...

...use "git restore --staged ..." to unstage) deleted: app/assets/stylesheets/pagination.sass Untracked files: (use "git add ..." to include in what will be committed) app/assets/stylesheets/pagination.sass Now use fixup to add the commit to delete...

...for full-stack integration testing. Try and use it Your forked MovieDB should already include a feature that uses a real browser. Add the @javascript tag to your other features...

Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts

...combining international and local numbers, see example below) as the called number should not include that zero. def tel_to(text) groups = text.to_s.scan(/(?:^\+)?\d+/) if groups.size > 1 && groups...

...a Rails application, your code base will grow a collection of different file types including: Ruby (business logic) HTML fragments (layouts and views) CSS/Sass/SCSS (styles) JavaScript (client-side behavior)

...how can we define a "manifest" or "pack" that defines which files should be included in the build? Can our JavaScripts use import or require to load another file? Fingerprinting...

makandra Curriculum

...difference between class methods and instance methods (def self.method vs. def method) Modules and include Code blocks ("procs", "lambdas") Input and output Simple regular expressions Resources Tutorials

evilmartians.com

...suite of tools designed to improve the performance of Ruby test suites. Key tools include: EventProf: Measures the time spent on specific events during tests to identify slow processes.

...need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib...

--srcdir=. --curdir --ruby=/home/user/.rbenv/versions/1.9.3-p551/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include --without-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib...

...their solution a little further to prevent the leak at its root. When you include the attached module in your ApplicationController, you can just use #prepend_view_path as before...

...versions (maybe more): Rails 4.0 - 7.0 This issue is now fixed and the fix included in Rails...

PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in unique indexes Usually this is fine, but some strings (like...

...hook will run after all scenarios have been executed. AfterAll do ... end You can include code to Cucumber in the World module without polluting the application namespace (example from...

makandra Curriculum

...versions. In this bonus chapter, we want to dive deeper. Common web apps often include static images like icons and application logos next to the dynamically created images versions of...

makandra dev
rails-sqli.org

...methods can open up code to SQL Injection exploits. The examples here do not include SQL injection from known CVEs and are not vulnerabilites themselves, only potential misuses of the...

...is only allowed to transfer files from a whitelist of paths that should not include /tmp. One solution for this is to save the tempfile in your project directory's...

...a few minor changes. If you have the vcr and webmock gems installed, simply include: # spec/support/vcr.rb VCR.configure do |c| c.cassette_library_dir = Rails.root.join("spec", "vcr") c.hook_into :webmock end RSpec.configure...

makandra Curriculum

Read the card Before you make a merge request: Checklist for common mistakes Include the checklist in the description of all future merge requests and try to tick all...