1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/spec/errors_spec.rb

12 lines
340 B
Ruby
Raw Normal View History

2013-05-21 07:58:46 -04:00
require 'spec_helper'
describe Capybara::Webkit::JsonError do
let(:error) { described_class.new '{"class": "ClickFailed", "message": "Error clicking this element"}' }
subject { error.exception }
it { should be_an_instance_of Capybara::Webkit::ClickFailed }
2017-02-03 14:20:27 -05:00
it { expect(subject.message).to eq 'Error clicking this element' }
2013-05-21 07:58:46 -04:00
end