Sha256: 2914486fc93f511daf8685747d5d848ea74b428ae6fb2bde7e1172807ebf2526

Contents?: true

Size: 465 Bytes

Versions: 29

Compression:

Stored size: 465 Bytes

Contents

describe "Fortitude static-method behavior in Rails", :type => :rails do
  uses_rails_with_template :static_method_system_spec

  it "should allow access to helpers in methods made static" do
    expect_match("allows_helper_access", /foo is: fooaaafoobarbbb!/)
  end

  it "should respect localization in methods made static" do
    expect_match("localization?locale=en", /hello is: hello/)
    expect_match("localization?locale=fr", /hello is: bonjour/)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fortitude-0.9.6-java spec/rails/static_method_system_spec.rb
fortitude-0.9.6 spec/rails/static_method_system_spec.rb
fortitude-0.9.5-java spec/rails/static_method_system_spec.rb
fortitude-0.9.5 spec/rails/static_method_system_spec.rb
fortitude-0.9.4-java spec/rails/static_method_system_spec.rb
fortitude-0.9.4 spec/rails/static_method_system_spec.rb
fortitude-0.9.3-java spec/rails/static_method_system_spec.rb
fortitude-0.9.3 spec/rails/static_method_system_spec.rb
fortitude-0.9.2-java spec/rails/static_method_system_spec.rb
fortitude-0.9.2 spec/rails/static_method_system_spec.rb
fortitude-0.9.1-java spec/rails/static_method_system_spec.rb
fortitude-0.9.1 spec/rails/static_method_system_spec.rb
fortitude-0.9.0-java spec/rails/static_method_system_spec.rb
fortitude-0.9.0 spec/rails/static_method_system_spec.rb
fortitude-0.0.10-java spec/rails/static_method_system_spec.rb
fortitude-0.0.10 spec/rails/static_method_system_spec.rb
fortitude-0.0.9-java spec/rails/static_method_system_spec.rb
fortitude-0.0.9 spec/rails/static_method_system_spec.rb
fortitude-0.0.7-java spec/rails/static_method_system_spec.rb
fortitude-0.0.7 spec/rails/static_method_system_spec.rb