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.0.6-java spec/rails/static_method_system_spec.rb
fortitude-0.0.6 spec/rails/static_method_system_spec.rb
fortitude-0.0.5-java spec/rails/static_method_system_spec.rb
fortitude-0.0.5 spec/rails/static_method_system_spec.rb
fortitude-0.0.4-java spec/rails/static_method_system_spec.rb
fortitude-0.0.4 spec/rails/static_method_system_spec.rb
fortitude-0.0.3 spec/rails/static_method_system_spec.rb
fortitude-0.0.2 spec/rails/static_method_system_spec.rb
fortitude-0.0.1 spec/rails/static_method_system_spec.rb