All threads / Code Coverage with SimpleCov and RailsBytes Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Code Coverage with SimpleCov and RailsBytes Discussion

Hi - Simplecov shows that three lines are missing. I don't know what wrong with it. Please have a look at once and let me know your thoughts. sorry - can't add an attachment.

require 'test_helper'
1class GifTest < ActiveSupport::TestCase
1 test "gif_must_be_assigned_to_user" do
gif = Gif.new(name: "Family")
gif.valid?
refute_empty gif.errors[:user]
end
end

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 38,558+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    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.