trailblazer / rspec-cells

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

Capybara::RSpecMatchers has to be include if spec is written with cell instance #31

Closed PikachuEXE closed 11 years ago

PikachuEXE commented 11 years ago

I try to use Cell with Devise And follow how to stub things in https://github.com/apotonick/rspec-cells#api

But cell_instance.render_state(:state) would give undefined methodhas_selector?' for #<ActiveSupport::SafeBuffer>

Including Capybara::RSpecMatchers manually would solve it but I am not sure if it's intended (since render_cell works fine before)

apotonick commented 11 years ago

Should be fixed in 0.1.8.

BTW if you're keen on helping out, get the gem's specs run with the capybara gem loaded.

PikachuEXE commented 11 years ago

Now the stub is not working anymore!! Worse :P

let!(:cell_instance) { cell(:some_cell) }
before { cell_instance.stub(current_user: seed(:user)) }

Works with 0.17 but not 0.18

apotonick commented 11 years ago

Should work with 0.1.9 now - sorry :)

On Tue, Nov 12, 2013 at 4:07 PM, PikachuEXE notifications@github.comwrote:

Now the stub is not working anymore!! Worse :P

let!(:cell_instance) { cell(:some_cell) }before { cell_instance.stub(current_user: seed(:user)) }

Works with 0.17 but not 0.18

— Reply to this email directly or view it on GitHubhttps://github.com/apotonick/rspec-cells/issues/31#issuecomment-28268664 .

PikachuEXE commented 11 years ago

Finally It's working now! Thanks! :)