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
Create an account Log in

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

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

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