Skip to content

Using without RSpec? #151

Description

@glenjamin

I was writing a little rake task to compare some data in our DB to fixture files, and found this module as the best one for doing pretty printed diffs of object.

I had a little bit of trouble finding out how to produce a diff without using Rspec though - I managed to get something working using:

puts SuperDiff::Differs::Main.call(from_dump, from_db)

However this lacks headings to say which item is before/after, and doesn't give a result I can use as an exit code.

Is there a good way to use this library in a standalone mode?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions