var Capybara={installJasmineMatchers:function(e){e.addMatchers(Capybara.JasmineMatchers)}};Capybara.JasmineMatchers={},Capybara.JasmineMatchers.toHaveContent=function(e){var t=new RegExp(e);return this.message=function(){return["Expected "+$(this.actual).outerHtml+" to have content '"+e+"'","Expected "+$(this.actual).outerHtml+" not to have content '"+e+"'"]},t.test(e)},Capybara.Page=function(e){function n(e){return e.replace("!","")}var t=$(e);return t.extend({fillIn:function(e){var r=$("label:contains("+e+")",t),i=$("input#"+n(e),t),s=$("input[name='"+e+"']",t),o=$("#"+r.attr("for"),t),u=$("input",r),a=i.add(s).add(o).add(u).first();if(!a.length)throw"Input for '"+e+"' not found in "+t.html();return{"with":function(e){a.val(e)}}},clickButton:function(e){var r=$("button#"+n(e),t),i=$("button[value='"+e+"']",t),s=$("input#"+n(e)+"[type='submit']",t),o=$("input[type='submit'][value='"+e+"']",t),u=$("button:contains("+e+")",t),a=r.add(i).add(s).add(o).add(u).first();if(!a.length)throw"Button for '"+e+"' not found in "+t.html();a.click()}})};
var Capybara={installJasmineMatchers:function(e){e.addMatchers(Capybara.JasmineMatchers)}};Capybara.JasmineMatchers={},Capybara.JasmineMatchers.toHaveContent=function(e){var t=new RegExp(e);return this.message=function(){return["Expected "+$(this.actual).outerHtml+" to have content '"+e+"'","Expected "+$(this.actual).outerHtml+" not to have content '"+e+"'"]},t.test(e)},Capybara.JasmineMatchers.toHaveCss=function(e){return this.message=function(){if(!this.actual.isPage||!this.actual.isPage()){var t="Called toHaveCss on an object that is not a Capybara.Page";return[t,t]}return["Expected "+$(this.actual).outerHtml+" to have css '"+e+"'","Expected "+$(this.actual).outerHtml+" not to have css '"+e+"'"]},!this.actual.isPage||!this.actual.isPage()?jasmine&&jasmine.JQuery&&jasmine.JQuery.matchersClass&&jasmine.JQuery.matchersClass.toHaveCss?jasmine.JQuery.matchersClass.toHaveCss.apply(this,arguments):!1:$(e,this.actual).length>0},Capybara.Page=function(e){function n(e){return e.replace("!","")}var t=$(e);return t.extend({fillIn:function(e){var r=$("label:contains("+e+")",t),i=$("input#"+n(e),t),s=$("input[name='"+e+"']",t),o=$("#"+r.attr("for"),t),u=$("input",r),a=i.add(s).add(o).add(u).first();if(!a.length)throw"Input for '"+e+"' not found in "+t.html();return{"with":function(e){a.val(e)}}},clickButton:function(e){var r=$("button#"+n(e),t),i=$("button[value='"+e+"']",t),s=$("input#"+n(e)+"[type='submit']",t),o=$("input[type='submit'][value='"+e+"']",t),u=$("button:contains("+e+")",t),a=r.add(i).add(s).add(o).add(u).first();if(!a.length)throw"Button for '"+e+"' not found in "+t.html();a.click()},isPage:function(){return!0}})};
Build capybara.js