Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

content_for recursive array join error, rspec fails with slim #145

Closed
penguinstampede opened this issue Oct 17, 2014 · 5 comments
Closed

Comments

@penguinstampede
Copy link

after updating my bundle, I am running into this error:

ArgumentError at /
recursive array join

When running rspec on sinatra-contrib, there are 40 failures and all relate to slim... most of the failures are in content_for.

rspec ./spec/content_for_spec.rb:179 # Sinatra::ContentFor Erb with yield_content in Slim renders blocks declared with the same key you use when rendering

also, the bundle, fwiw:

Using rake 10.3.2
Using backports 3.6.3
Using diff-lcs 1.2.5
Using erubis 2.7.0
Using tilt 1.4.1
Using haml 4.0.5
Using multi_json 1.10.1
Using rack 1.5.2
Using rack-protection 1.5.3
Using rack-test 0.6.2
Using rspec-core 2.99.2
Using rspec-expectations 2.99.2
Using rspec-mocks 2.99.2
Using rspec 2.99.0
Using sinatra 1.4.5 from git://github.com/sinatra/sinatra.git (at master)
Using sinatra-contrib 1.4.2 from source at .
Using temple 0.6.9
Using slim 2.0.2
Using yajl-ruby 1.2.1
Using bundler 1.6.0

@mperrando
Copy link

Very likely this is a duplicate of #67.

@mperrando
Copy link

Just a note.

The "recursive array join" error show only with slim (2.1.0).

After updating to slim (3.0.0), that has the dependency on temple (0.7.3), the error changes to
undefined method <<' for nil:NilClass`.

@penguinstampede
Copy link
Author

nice find, thanks very much. moving back to temple 0.6.8 does clear up all of the rspec errors.

@penguinstampede
Copy link
Author

Decisions! Need to move past Temple 0.6.8 if I want to use the Slim includes plugin. But, still getting the "recursive array join" error using content_for with Temple 0.7.5.

Does that make this a Temple issue or a Sinatra-Contrib issue?

@minad
Copy link

minad commented May 22, 2015

See judofyr/temple#86

@zzak zzak closed this as completed in 50733f7 May 22, 2015
zzak pushed a commit to zzak/sinatra-contrib that referenced this issue Jul 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants