Advertising Console

    RSpec Subjects

    Repost
    teachmetocode

    by teachmetocode

    6
    81 views
    RSpec provides an extremely concise way of representing simple tests to be called on new instances of a class or on explicitly defined receiver objects. You can do this by using 'subjects' either as defined by the 'describe' or the 'subject' methods.