Skip to content

No such file or directory Book.txt #25

Open
@victor-soto

Description

Hi, I have an error in comments_spec.rb, I ran this test only and retrieve this error:


  1) commenting as an account's owner rejecting a note
     Failure/Error: lines = File.readlines("Book.txt")
     
     Errno::ENOENT:
       No such file or directory @ rb_sysopen - Book.txt
     # ./app/workers/book_worker.rb:15:in `readlines'
     # ./app/workers/book_worker.rb:15:in `block in perform'
     # ./app/workers/book_worker.rb:14:in `chdir'
     # ./app/workers/book_worker.rb:14:in `perform'
     # ./spec/support/book_helpers.rb:12:in `create_book!'
     # ./spec/features/comments_spec.rb:6:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (3 levels) in <top (required)>'
     # /home/victor/.rvm/gems/ruby-2.3.3/gems/database_cleaner-1.5.3/lib/database_cleaner/generic/base.rb:16:in `cleaning'
     # /home/victor/.rvm/gems/ruby-2.3.3/gems/database_cleaner-1.5.3/lib/database_cleaner/base.rb:98:in `cleaning'
     # /home/victor/.rvm/gems/ruby-2.3.3/gems/database_cleaner-1.5.3/lib/database_cleaner/configuration.rb:86:in `block (2 levels) in cleaning'
     # /home/victor/.rvm/gems/ruby-2.3.3/gems/database_cleaner-1.5.3/lib/database_cleaner/configuration.rb:87:in `cleaning'
     # ./spec/rails_helper.rb:39:in `block (2 levels) in <top (required)>'

Finished in 12.79 seconds (files took 4.73 seconds to load)
3 examples, 1 failure

Failed examples:

rspec ./spec/features/comments_spec.rb:49 # commenting as an account's owner rejecting a note

Could you help me please?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions