Ananya Singh

Joined

110 Experience
0 Lessons Completed
0 Questions Solved

Activity

Following is the whole error:
An error occurred while loading ./spec/models/completed_lesson_spec.rb.
Failure/Error:
  RSpec.describe Completed_lesson, type: :model do
    it "has a user_id" do
      completed_lesson = Completed_lesson.create!(user_id: 1)

      second_completed_lesson = Completed_lesson.create!(user_id: 2)

       expect(second_completed_lesson.user_id).to eq(2)
    end
  end

LoadError:
  Unable to autoload constant Completed_lesson, expected C:/Sites/SM-rails/app/models/completed_lesson.rb to define it
# ./spec/models/completed_lesson_spec.rb:3:in `<top (required)>'
No examples found.
 Unable to autoload constant CONSTANT_NAME, expected TESTING_FILE_PATH to define it

Posted in URGENT! How do I solve the following error?

I am trying to run a test using rspec and I am getting the following error. Please help.

ReactOnRails: Set generated_assets_dir to default: public/webpack/development
rake aborted!
NameError: undefined local variable or method `webpack' for main:Object
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.