Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
PikachuEXE opened this issue Nov 11, 2013 · 4 comments

Comments

@PikachuEXE
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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//issues/31#issuecomment-28268664
.

@PikachuEXE
Copy link
Author

Finally It's working now!
Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants