
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
workable_json_assertions
Advanced tools
This gem adds basic JSON assertions to your controller tests.
Add this line to your application's Gemfile:
group :test do
gem 'workable_json_assertions'
end
And then execute:
$ bundle
Or install it yourself as:
$ gem install workable_json_assertions
class BasicControllerTest < ActionController::TestCase
def test_success
get :index # {}
assert_json_response_empty
end
end
class BasicControllerTest < ActionController::TestCase
def test_success
get :index # { 'key': 'value' }
assert_json_response_equal { key: 'value' }
end
end
class BasicControllerTest < ActionController::TestCase
def test_success
get :index # { 'key': 'value', 'created_at': '2016-07-25', 'updated_at': '2016-07-26' }
assert_json_response_equal_except { key: 'value' }, %i(created_at updated_at)
end
end
class BasicControllerTest < ActionController::TestCase
def test_success
get :index # { 'key': 'value', 'created_at': '2016-07-25', 'updated_at': '2016-07-26' }
assert_json_response_includes({ key: 'value' })
assert_json_response_includes({ created_at: '2016-07-25' })
end
end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that workable_json_assertions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.