Sha256: 339e800dd6aa868a17aa91df33145330318c3b57ab0f7e1340a3e9b985c14a1b

Contents?: true

Size: 1.01 KB

Versions: 17

Compression:

Stored size: 1.01 KB

Contents

describe "Rails ERb integration support", :type => :rails do
  uses_rails_with_template :erb_integration_system_spec

  it "should let you call a widget from an ERb file with render :partial" do
    expect_match("erb_to_widget_with_render_partial", /erb to widget with render partial widget/,
      /erb_start/, /erb_end/, /erb_start.*erb to widget with render partial widget.*erb_end/m)
  end

  it "should prefer ERb partials to Fortitude partials" do
    expect_match("prefers_erb_partial", /erb partial/,
      /erb_start.*erb partial.*erb_end/m)
  end

  it "should allow you to define a Fortitude partial in a file with an underscore" do
    expect_match('fortitude_partial_with_underscore', /fortitude partial with underscore partial/,
      /erb_start.*fortitude partial with underscore partial.*erb_end/m)
  end

  it "should let you call an ERb partial from a widget with render :partial" do
    expect_match('erb_partial_from_widget',
      /this is the widget.*this is the partial.*this is the widget again/mi)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fortitude-0.9.0-java spec/rails/erb_integration_system_spec.rb
fortitude-0.9.0 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.10-java spec/rails/erb_integration_system_spec.rb
fortitude-0.0.10 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.9-java spec/rails/erb_integration_system_spec.rb
fortitude-0.0.9 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.7-java spec/rails/erb_integration_system_spec.rb
fortitude-0.0.7 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.6-java spec/rails/erb_integration_system_spec.rb
fortitude-0.0.6 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.5-java spec/rails/erb_integration_system_spec.rb
fortitude-0.0.5 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.4-java spec/rails/erb_integration_system_spec.rb
fortitude-0.0.4 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.3 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.2 spec/rails/erb_integration_system_spec.rb
fortitude-0.0.1 spec/rails/erb_integration_system_spec.rb