Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7703335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:26:03+00:00 2026-05-31T23:26:03+00:00

I am learning Ruby and have to do some homework, but have problem with

  • 0

I am learning Ruby and have to do some homework, but have problem with executing code. I searched this forum and Google and found that this could be problem with different Ruby versions but I don’t know how to fix this. I’ve tried to execute:

cucumber features/filter_movie_list.feature

and got this:

And I should not see ‘G’ #
features/step_definitions/movie_steps.rb:32
no such file to load — rspec/matchers/built_in/has (LoadError)
./features/step_definitions/movie_steps.rb:34:in /^(?:|I )should not see '([^']*)'$/'
features/filter_movie_list.feature:37:in
And I should not see ‘G”

Can someone help me to solve this problem or give me link to solution?

EDIT:
movie_steps.rb relevant for this taks is:

Then /^(?:|I )should not see '([^']*)'$/ do |text|
  if page.respond_to? :should
    page.find('#movies').should have_no_content(text)
  else
    assert page.find('#movies').has_no_content?(text)
  end

end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:26:05+00:00Added an answer on May 31, 2026 at 11:26 pm

    The error message says that Cucumber can’t find RSpec.

    To solve it, edit your Gemfile and add these and that should solve it.

    group :test do
      gem 'rspec'  # Behavior Driven Development (BDD) for Ruby
      gem 'rspec-core'  # RSpec runner and example groups.
      gem 'rspec-expectations'  # RSpec matchers for should and should_not.
      gem 'rspec-mocks'  # RSpec test double framework with stubbing and mocking.
      gem 'rspec-rails'  # RSpec version 2.x for Rails version 3.x.
    end
    

    If that does solve it, you can probably remove all those lines except the first one (the ‘rspec’ one) because that line should take care of the others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning Ruby and found this code sample in some documentation: require 'find'
Is is that I'm a newbie learning Ruby, or does it really have more
I'm learning Ruby on Rails. I'm using some associations (has_many :through, ...) But i'm
I'm learning Ruby and have just gotten into some stuff about arrays and ranges.
I'm working on learning TDD while writing some small ruby programs. I have the
I know that there have been plenty of topics describing this topic but I
I learning ruby singletons and have misunderstanding with such code: class MyClass def self.class_singleton_mymethod
I have some code that reads a file into an array of lines, and
I'm just learning ruby on rails and I have a table of user roles
Good afternoon, I'm learning about using RegEx's in Ruby, and have hit a point

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.