graphiti_spec_helpersis 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.
Spec helpers for Graphiti APIs.
Note: this assumes you have rspec-rails installed & configured already.
Gemfile
group :development, :test do
# ...
gem 'graphiti_spec_helpers', '~> 1.1'
# ...
endspec/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