Sha256: 4c86debb8bc3c063d5e4f77be0c4caa65ab2549a41cde86bed15031d8ae801a0
Contents?: true
Size: 410 Bytes
Versions: 6
Compression:
Stored size: 410 Bytes
Contents
require 'spec_helper' describe "Capybara support" do include RSpec::Rails::WidgetExampleGroup has_widgets do |root| root << widget(:dummy) end it "can use rendered to get the result of render_widget" do ::Apotomo::Widget.any_instance.stub(:render_widget).and_return("<html><body><h1>Hello!</h1></body></html>") render_widget(:some_widget) rendered.should have_xpath('//h1') end end
Version data entries
6 entries across 6 versions & 1 rubygems