Sha256: e93533ff0c7a30c14fc9907109d4c92513b6e2cdaa8b764bb0c590b2a27de1fe
Contents?: true
Size: 1.05 KB
Versions: 6
Compression:
Stored size: 1.05 KB
Contents
describe "Erector coexistence support", :type => :rails do uses_rails_with_template :erector_coexistence_system_spec, :additional_gemfile_lines => "gem 'erector'" begin gem 'erector' rescue Gem::LoadError => le # ok end begin require 'erector' rescue LoadError => le # ok end if defined?(::Erector::Widget) it "should be able to render a Fortitude widget in app/views" do expect_match("fortitude_widget_in_app_views", /this is Fortitude: foo = bar/) end it "should be able to render a Fortitude widget in app/v/views" do expect_match("fortitude_widget_in_app_v_views", /this is Fortitude: foo = marph/) end it "should be able to render an Erector widget in app/views" do expect_match("erector_widget_in_app_views", /<p\s+class\s*=\s*"some_class"\s*>this is Erector: foo = baz<\/p>/) end it "should be able to render an Erector widget in app/v/views" do expect_match("erector_widget_in_app_v_views", /<p\s+class\s*=\s*"some_class"\s*>this is Erector: foo = quux<\/p>/) end end end
Version data entries
6 entries across 6 versions & 1 rubygems