Ruby on Rails Monday, April 28, 2014


On Monday, April 28, 2014 11:16:57 AM UTC+1, Ruby-Forum.com User wrote:
It is right I should follow the directions which is given in message.

The " users_helper_spec.rb " file contain following code:

require 'spec_helper'

# Specs in this file have access to a helper object that includes
# the UsersHelper. For example:
#
# describe UsersHelper do
#   describe "string concat" do
#     it "concats two strings with spaces" do
#       helper.concat_strings("this","that").should == "this that"
#     end
#   end
# end
describe UsersHelper do
  pending "add some examples to (or delete) #{__FILE__}"
end

which example should I add? The example given in comment form, that
should I add in " users_helper_spec.rb " file?


That depends entirely on what your code does. Typically you would have a group of specs testing various cases for each of the methods in UsersHelper.

If you're not going to write any specs then you can just delete the file.

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/432a93d0-073e-402b-84a2-78e46d0d663c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment