Sha256: 77df643bd547e253447a6d4372173e6009d06cfc07185e7bcd1ab4e2be832feb
Contents?: true
Size: 941 Bytes
Versions: 4
Compression:
Stored size: 941 Bytes
Contents
describe "Rails rules support", :type => :rails do uses_rails_with_template :rules_system_spec it "should be able to enforce tag-nesting rules in Rails" do expect_actionview_exception('invalidly_nested_tag', Fortitude::Errors::InvalidElementNesting, /div/) end it "should still enforce tag-nesting rules inside a partial" do expect_actionview_exception('invalidly_nested_tag_in_partial', Fortitude::Errors::InvalidElementNesting, /div/) end it "should not enforce tag-nesting rules at the start of a partial rendered from ERb" do expect_match("invalid_start_tag_in_partial", /we got there\!/) end it "should not enforce tag-nesting rules from layout to view, even if both are in Fortitude" do expect_match('invalid_start_tag_in_view', /we got there\!/) end it "should not enforce tag-nesting rules across an intervening partial" do expect_match('intervening_partial', /we got there\!/) end end
Version data entries
4 entries across 4 versions & 1 rubygems