trailblazer / cells

View components for Ruby and Rails.
https://trailblazer.to/2.1/docs/cells.html
3.07k stars 236 forks source link

error rspec [not found] #270

Closed firedev closed 9 years ago

firedev commented 9 years ago

Here is what I see when I try rails g cell staff

$ rails g cell staff
      create  app/cells/staff_cell.rb
      create  app/cells/staff/show.erb
       error  rspec [not found]
Using rails 4.2.0
Using rspec-rails 3.2.1
Using rspec-core 3.2.2

Oh and it seems to generate .erb despite having cells-slim installed.

seuros commented 9 years ago

you need to have rspec-cells from master.

firedev commented 9 years ago
Using cells 4.0.0.beta2 from git://github.com/apotonick/cells.git (at master)
$ rails g cell test                                                                                                                                                            
      create  app/cells/test_cell.rb
      create  app/cells/test/show.erb
       error  rspec [not found]
seuros commented 9 years ago

https://github.com/apotonick/rspec-cells

firedev commented 9 years ago

Indeed! That helped, thanks.

group :development, :test do
  gem 'rspec-cells', github: 'apotonick/rspec-cells'
end