trailblazer / rspec-cells

Spec your Cells.
http://cells.rubyforge.org
MIT License
62 stars 48 forks source link

allow syntax #61

Closed deniciocode closed 9 years ago

deniciocode commented 9 years ago

Hey Folks,

I am working with rspec-cells and want to stup a cell. I get a deprecation warning for stubbing than I use album_cell.stub(:album).and_return('Johnny') so I try the new Rspec 3 syntax allow(album_cell).to receive(:album).and_return('Johnny').

If I try the new syntax everything is blowing of without any useful message. Is the way I want to use the new Rspec 3 syntax valid in Rspec-cells?

apotonick commented 9 years ago

Hi Denni! This is similar to https://github.com/apotonick/rspec-cells/issues/56

I am not sure if we gonna drop support for Cells 3 in rspec-cells but we are working on an updated gem for Cells 4, which should be out in a few weeks. Note that the current 4.0.0.beta2 is already used in dozens of production apps, so consider the API "stable".

Currently, I'm traveling and busy drinking beer and mezcal. :smile: But I hear that @seuros is working on an updated version for rspec-cells.

seuros commented 9 years ago

@apotonick , he is talking about Rspec 3 not cells 3 :smiley_cat: . Keep drinking, i will update the gem this weekend :heart: .

apotonick commented 9 years ago

This is fixed now in rspec-cells 0.3.