Permalink
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (7 sloc) 340 Bytes
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 }
it { expect(subject.message).to eq 'Error clicking this element' }
end