
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Rspec matcher for asserting that this appears_before(that) in rspec request specs
Add this line to your application's Gemfile:
gem 'orderly'
And then execute:
$ bundle
Or install it yourself as:
$ gem install orderly
In an rspec request spec, do
let(:this) { "<li>Andrea</li>" }
let(:that) { "<li>Luis</li>" }
expect(this).to appear_before(that)
# or use capybara elements
this = find('.this')
that = find('.that')
expect(this).to appear_before(that)
To assert that something does not appear before
expect(this).to_not appear_before(that)
By default, appear_before
matches against HTML. If you want to only compare text, use the only_text
-option:
# <dl>
# <dt>First name:</dt>
# <dd>Andrea</dt>
#
# <dt>Last name:</dt>
# <dd>Robbinovich</dt>
# </dl>
expect("First name: Andrea").to appear_before("Last name: Robbinovich", only_text: true)
only_text
-optionwithin
-blocksPatches welcome! Submit a pull request.
FAQs
Unknown package
We found that orderly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.