Questions tagged [turnip]

Turnip is a Gherkin extension for RSpec. It allows you to write tests in Gherkin and run them through your RSpec environment. Basically you can write cucumber features in RSpec.

6 questions
1
vote
1 answer

Rspec failing with Selenium::WebDriver::Error::InvalidSessionIdError

Edit: The Turnip piece is a red herring. Running rspec natively by itself remains an issue. Example invocation: bundle exec rspec spec/features/subscription_spec.rb:33 Errors: Failures: …
Erik Jacobs
  • 841
  • 3
  • 7
  • 19
1
vote
2 answers

Q:How to test ActionMailer deliver_later with Turnip,capybara and Gherkin

def deliver_mail ServiceMailer.activation().deliver_later end deliver_mail method is called from some controller. I want to test like below - feature test using cucumber and capybara. step 'push next button' do …
1
vote
0 answers

How should I load VCR results in a Turnip acceptance spec?

I have a web request that ultimately calls an external service, merges data in our db, then presents results. I think I can ignore a JS based setup (make request, queue job, return polling js) as it looks like I'll have the same question if this is…
blu
  • 12,905
  • 20
  • 70
  • 106
1
vote
0 answers

Testing with Turnip & Capybara, how to click button by class/id/value etc

I'm working with someone else's acceptance tests and I don't quite understand how they work. On the page I have two buttons with the value 'Update' so I'm getting an ambiguity error. Scenario: Update When I fill in "line_items__quantity" with…
Mary
  • 109
  • 10
0
votes
2 answers

Cannot run rspec getting gherkin (LoadError)

I'm trying to run rspec but getting load error which raising like bellow. Done gem install gherkin, gem install cucumber and added -r turnip/rspec to .rspec but not worked for…
-1
votes
1 answer

selenium capybara, hover menu skip animate show

I have a website need test e2e, in each case, I must hover the main menu for sub-menu showing, then click goto next step. Because only click sub-menu success after menu is hovered in 1.5 seconds, So every time I want to goto next page, I must pay 2…
Peter89
  • 706
  • 8
  • 26