Search code examples
rubyruby-on-rails-4rspecsequel

Not able to run rspec with Sequel


I am using "rspec_sequel_matchers" gem and followed the steps mentioned in the documentation. But when i run the rspec it says " uninitialized constant RspecSequel (NameError)". Help much appreciated.


Solution

  • I moved the code:

    RSpec.configure do |config|
        config.include RspecSequel::Matchers
        #...other config..
    end
    

    from spec_helper.rb to rails_helper.rb

    It's working now.