happybara-ruby
v1.0.6
Published
Interact with your Happybara Ruby test server in JavaScript. Has basic support for object _reflection_ (or weak references.)
Downloads
12
Readme
happybara-ruby
Interact with your Happybara Ruby test server in JavaScript. Has basic support for object reflection (or weak references.)
Example
feature('Patients', function(page) {
scenario('I can create and update Ruby objects', async function() {
const user = await page.execRuby('a_user');
console.log(user.name); // Bob
await user.update_attribute('name', 'Alice');
await user.reload();
console.log(user.name); // Alice
});
})
API
TBD