GraphitiSpecHelpers

This gem is retired

graphiti_spec_helpers is part of graphiti itself as of graphiti 2.0, and is no longer developed here. Issues and pull requests live in the graphiti repo.

To upgrade from Graphiti 1.x to 2.x, follow the upgrade guide.

Build Status Gem Version

Spec helpers for Graphiti APIs.

Installation

Note: this assumes you have rspec-rails installed & configured already.

Gemfile

group :development, :test do
  # ...
  gem 'graphiti_spec_helpers', '~> 1.1'
  # ...
end

spec/rails_helper.rb

# ...
# Add additional requires below this line. Rails is not loaded until this point!
require 'graphiti_spec_helpers/rspec'
# ...

RSpec.configure do |config|
  # ...
  config.include GraphitiSpecHelpers::RSpec
  config.include GraphitiSpecHelpers::Sugar
  config.include Graphiti::Rails::TestHelpers
  # ...

Then in your project directory

$ bundle install