mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
12 lines
331 B
Ruby
12 lines
331 B
Ruby
|
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 }
|
||
|
|
||
|
its(:message) { should == 'Error clicking this element' }
|
||
|
end
|